stijn0713 Posted April 4, 2012 Share Posted April 4, 2012 What means this syntax line: $comments = (array) $comments thanks in advance Quote 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 Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.