December 20, 2009 - Posted by linden- 3 Comments
Heredoc and Nowdoc are two method to define a string in php. They both could define a multiple-line-style string without using \n. They make it easy to define a paragraph.But there are differences between Heredoc and Nowdoc.
The Heredoc is a multiple-line simple string. It will be parsed. All the variable in the string will be [...]
December 16, 2009 - Posted by linden- 1 Comment
Recently, I try to use vim as my editor for php. I found these usefull tools for using to configure your vim more confortable.
First, if your installation of vim has no php syntax file, you can download php.vim from php.vim. Put the extracted file into syntax folder under vim installation directory. It might be /usr/share/vim/vim7/syntax [...]