A programmer's paradise created by the twist of deliberated fantasies, and actions of a determined imagination.
Follow ME:
www.linkedin.com
...
Cheap and affordable: Cloud Webhosting for only Php.500.00 monthly. Unlimited webspace and Bandwidth. Contact ME at tuso@programmerspride.com to avail a service.

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

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 ...
EOF;
NOTE: EOF there is your identifier and can be named to anything. Demonstrating the heredoc's power:
$greeting = 'Hello';
$str = <<<MYDOC
$greeting Philippines !!!
Mabuhay !!!
MYDOC;

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 ...
EOF;
IMPORTANT: Do not indent the closing identifier.