php - Reading out value of specific key in array -


I have created a multi-dimensional array for an event calendar. Array ([0] => Array ([ID] => 11 [Title] => Evening 1 van 1 Dag [Started] => 2014-01-01) [1] = & gt; ; Array ([id] = & gt; 12 [title] = & gt; evening 2 van 1 week [start] => 2014-02-01))

Do I Can I load startdate in a variable?

Yes, it is very easy:

  $ startdate = $ Array [0] ['startdate'];  

Where $ arrays is the name of your array.

To select other starters, change the number in the first group of the square cell multidimensional array.


Comments

Popular posts from this blog

javascript - How to use the code plugin with popcornjs -

Python, converting png to gif using ImageMagick -

android layout hide/show views -