egorig Posted August 12, 2007 Share Posted August 12, 2007 Hi, which quotation marks is correct to be used in php ? ' or " ? include ("") or include ('') echo "" or echo '' ? Thanx Quote Link to comment Share on other sites More sharing options...
NArc0t1c Posted August 12, 2007 Share Posted August 12, 2007 Well nothing. Both will work, Some method's just takes longer. But I won't worry about it, It is only about a few hundreds of a second. Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted August 12, 2007 Share Posted August 12, 2007 Not correct. They are interpreted differently by PHP and are therefore used for different purposes. It's also correct that it has something to do with performance - ' tend to be faster than " but that is only a problem if you echo like 10^9 lines of text. http://no2.php.net/types.string Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.