PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The subject says it all. Looked through the PHP manual, couldn't find any functions really. If I do something like if $foo <10, $foo = "0".$foo; it still shows up without the 0 in front.
Also had a question about tabs.
if I echo some and put a \t in it, it puts the tab in the code when I view source, but not when echoed. Is there a HTML tag for tab or a php way to tab. echoing " " doesn't do the trick.
About tabs - if you need tabs to appear you either have to replace them with no-breaking whitespaces, use CSS to add a margin to the text or show the text within <pre> tags. Personally, I'd probably go the CSS route, but it does depend on what needs to be displayed.
Well, I tried doing the <pre> tags thing, that didn't work though for me. Instead I put the things in the quotes with the printf function and that did it. I just basically wanted to display what I was printf'ing over a tab or two.