[fx.php_list] Re: [OFF] Simple array question

  • From: Chris Hansen <chris@xxxxxxxxxxx>
  • To: fx.php_list@xxxxxxxxxxxxx
  • Date: Fri, 23 Feb 2018 13:17:22 -0700

I like using isset($someVariable) to check whether something exists.
Avoids all sorts of mess =)

--Chris


On 2/23/18 1:10 PM, Bob Patin wrote:

To add to my question:

I need to check to see if the array has been created, and then add to
it, right? My first row needs to be created (I’m doing that now), but
I can’t figure out how to add the 2nd row…

Would I need to check the array size and then determine from that
which command to use to add to it rather than create it?

On Feb 23, 2018, at 2:07 PM, Bob Patin <bob@xxxxxxxxx
<mailto:bob@xxxxxxxxx>> wrote:

I must confess to not being very good with arrays…

I have an array of 3 dimensions, which I want to create and then add
more rows…

So let’s say the first row is created using array(“name”,”bob”,”patin”);

Now I want to add another row; Do I need to be using array_push()?
How would I add another 3-dimension row to my array?

I can’t quite get it to work…

Thanks,

Bob Patin
Longterm Solutions
bob@xxxxxxxxxxxxxxxxxxxxx <mailto:bob@xxxxxxxxxxxxxxxxxxxxx>
615-333-6858
FileMaker 9, 10, 11, 12 & 13 Certified Developer
http://www.longtermsolutions.com ;<http://www.longtermsolutions.com/>
-
iChat: bobpatin@xxxxxx <mailto:bobpatin@xxxxxx>
Twitter: bobpatin

FileMaker Consulting 
FileMaker Hosting for all versions of FileMaker
PHP • Full email services • Free DNS hosting • Colocation • Consulting



Other related posts: