there difference between using single , double quotation marks associative arrays names in php ?
e.g.: $var["test"] , $var['test']
practically no. there slight difference, though. if use double quotes, string computed; embedded variables expanded. single quotes on other side literals. handled as-is.
i could imagine double quotes produce slight overhead due computing, doubt it's significant.
i use single quotes programmatic stuff , double quotes user-presented text, unless required otherwise. that's neat little rule making live easier ;-)
Comments
Post a Comment