stijn0713 Posted April 4, 2012 Share Posted April 4, 2012 What means this syntax line: $comments = (array) $comments thanks in advance Link to comment https://forums.phpfreaks.com/topic/260329-what-means-this-syntax-line/ Share on other sites More sharing options...
trq Posted April 4, 2012 Share Posted April 4, 2012 It type casts $comments to an array. ie; Forces $comments to be of type Array. See http://php.net/manual/en/language.types.type-juggling.php#language.types.typecasting Link to comment https://forums.phpfreaks.com/topic/260329-what-means-this-syntax-line/#findComment-1334254 Share on other sites More sharing options...
stijn0713 Posted April 4, 2012 Author Share Posted April 4, 2012 thanks! Link to comment https://forums.phpfreaks.com/topic/260329-what-means-this-syntax-line/#findComment-1334265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.