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!
<?php
phpinfo();
if ($yardley) {
echo 'Whos da man'
}
?>
I did get errors. How come that happens? I have never tried that before, but it seems odd that a missing semicolon would not throw an error. Or am I missing something.
The closing tag of a block of PHP code automatically implies a semicolon
I wasn't aware of that either. Nifty!
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
When there is just one statement on the page... semicolon can be omitted.
... but I have never made this 'error'. The way I learned PHP was to always terminate your lines. Good thing is you are never too advanced to learn the language (unless you are feyd ).
I have always been of the mind set that if you open something in the code, you close, even if it is not necessary (like ending PHP tags, <db>_close(), etc). It just seems right.