Wednesday, March 28, 2007

PHP: String

heredoc. Remember it from Perl?

$x = "variable interpolation works here too"; echo <<<EOL <--- string starts here `~!@#%^&*()_+-={}|[]\:";'<>?,./ all works except \$ $x string ends here ---> EOL; // will print // <--- string starts here // `~!@#%^&*()_+-={}|[]\:";'<>?,./ // all works except $ // variable interpolation works here too // string ends here --->
Regular expression. Too many features to go over here.

No comments: