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 Link to comment https://forums.phpfreaks.com/topic/64537-a-simple-question-for-quotation-marks/ 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. Link to comment https://forums.phpfreaks.com/topic/64537-a-simple-question-for-quotation-marks/#findComment-321699 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 Link to comment https://forums.phpfreaks.com/topic/64537-a-simple-question-for-quotation-marks/#findComment-321701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.