Jump to content

put into array?


android6011

Recommended Posts

I have an empty array to start with ($array=array();) and I have an if statement that checks if a string is in the array using array_key_exists. Now if it doesnt exist in the array I want to insert it into the array. how do I do that? I only know how to define an array not insert into an array during a loop.

Link to comment
https://forums.phpfreaks.com/topic/94984-put-into-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.