Welcome Guest, Not a member yet? Register   Sign In
query result into array
#10

[eluser]danmontgomery[/eluser]
Just a side note here, you can always cast objects as arrays (and the other way around):

Code:
$foo->key = 'bar';
$foo = (array)$foo;
// $foo['key'] == 'bar'

$bar = array('key' => 'bar');
$bar = (object)$bar;
// $bar->key == 'foo'

http://php.net/manual/en/language.types....ggling.php


Messages In This Thread
query result into array - by El Forum - 05-05-2010, 02:47 PM
query result into array - by El Forum - 05-05-2010, 03:46 PM
query result into array - by El Forum - 05-05-2010, 03:48 PM
query result into array - by El Forum - 05-05-2010, 03:56 PM
query result into array - by El Forum - 05-05-2010, 04:02 PM
query result into array - by El Forum - 05-05-2010, 07:17 PM
query result into array - by El Forum - 05-05-2010, 07:25 PM
query result into array - by El Forum - 05-06-2010, 01:34 AM
query result into array - by El Forum - 05-06-2010, 04:29 AM
query result into array - by El Forum - 05-06-2010, 07:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB