Drviging me NUUUUTS
Jun. 11th, 2010 04:51 pmedit: FIXED!
Also: For some reason, print_f(array) left the underscores between the two words in the two-word keys out, while print_r(array) showed them, so they're actually post_author, post_date, etc. GAH TWO HOURS OF MY LIFE WASTED
=====================================================
SO. I'm using PHP.
I have a multi-dimensional associative array named $most_recent_posts that looks much like this:
SO
echo $most_recent_posts[0]["ID"]; SHOULD print out "4", should it not? Because right now all it's doing is halting the entire damn script.
Also: For some reason, print_f(array) left the underscores between the two words in the two-word keys out, while print_r(array) showed them, so they're actually post_author, post_date, etc. GAH TWO HOURS OF MY LIFE WASTED
=====================================================
SO. I'm using PHP.
I have a multi-dimensional associative array named $most_recent_posts that looks much like this:
Array ( [0] => stdClass Object ( [ID] => 4 [post author] => 3 [post date] => 2010-06-11 19:37:46 ) [1] => stdClass Object ( [ID] => 5 [post author] => 12 [post date] => 2010-06-08 12:34:56 ) )
SO
echo $most_recent_posts[0]["ID"]; SHOULD print out "4", should it not? Because right now all it's doing is halting the entire damn script.