01-20-2008, 05:46 PM
|
#1 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
(array) or array()?
I really don't know how to sum this up but uhh, what's better or is it all the same? Such as:
PHP Code:
// Different method in making variables, arrays...
(array) $foo;
// Wouldn't $foo become an array just by that simply?
// Or this way:
$foo = array();
// I understand $foo gets assigned using the = operator doing that turns it into an array but wouldn't the other method just as good?
// Sorry if I am confusing you >.<
// Otherwise is (array) good for only Conditional Executing Statements like IF()? :S
James
|
|
|
|