A programmer's paradise created by the twist of deliberated fantasies, and actions of a determined imagination.
Follow ME:
If you would like to make an appoinment, contact ME directly via my email address at tuso@programmerspride.com.

Add to Google
Single-Batch Multi Uploader (FLASH)
The extended way of normal upload. You can select multiple files that you can browse from a single or multiple directories. All files that a ...


HEREDOC and NOWDOC are two robust ways in displaying contents in your document.

heredoc text behaves just like a double-quoted string. In a double-quoted string, the parser will greedily take as many tokens as possible to form a valid variable name when a dollar sign ($) is encountered.

heredoc syntax:
$str = <<<EOF
Your content here ...
NOTE: EOF there is your identifier and can be named to anything. Demonstrating the heredoc's power:
$greeting = 'Hello';
$str = <<<MYDOC
$greeting Philippines !!!
Mabuhay !!!

echo $str;
Output: Hello Philippines !!! Mabuhay !!! nowdoc as of PHP 5.3.0 behaves just like heredoc but without parsing the content. Meaning, if you want to display a block of static text then it's much faster to use nowdoc because a greedy string-parsing process will not be made. nowdoc syntax:
$str = <<<'EOF'
Your content here ...
IMPORTANT: Do not indent the closing identifier.