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

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

Firefox reacting to JQuery setTimeout that doesn't apply -