Adding to the next element in a multidimensional array


Posted on 16th Feb 2014 07:03 pm by admin

Hi, I'm trying to add a value to $node->field_spaces['nid'] where x is the next available spot in the field_spaces array. Always adding to the next spot. I'll be calling this in a for loop to add things in there... Can anyone offer a hand?

$node->field_spaces (array)
$node->field_spaces[0] (array)
$node->field_spaces[0]['nid']

Thank you

No comments posted yet

Your Answer:

Login to answer
193 Like 29 Dislike
Previous forums Next forums
Other forums

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

Need help in log in and log out?
hi there all of u. i have recently created a site for someone. i have placed log in and log out and

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

Variable uses and placement
I'm new to PL/SQL and am trying to learn about variable valid uses/placement (any pointers to any do

Accept only alpha characters
I've got this bit of code ready for accepting a phrase:

Code: if (!eregi ("", $_POS

Writing to the middle of a file
Hi I have a bit of a problem. Is there any way i can write some text to a middle of a text file. For

check comment for html
hi, I just wanted to check if a comment a user posts contains HTML, and if it does, to not allow it

Unidentified index error in a simple form
I have been trying to make an HTML form that is handled by a PHP script. So far my attempts to get i

get font info from a font file
hello,

Does anyone know how to get font info from a font file ... using php of course !
<

Modal Popup Help
Hi guys, I have a modal popup with an iframe. How can i send data from a label or textbox to the ifr

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash