Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:create:array [26.10.2018 09:54]
rafael.wilms [Arrays]
en:create:array [18.11.2020 17:30] (current)
sophia.schauer [Arrays]
Line 11: Line 11:
 // create an array // create an array
 $a = array('one', 'two', 'three'); $a = array('one', 'two', 'three');
 +</code>
 +
 +Instead of the notation ''array()'' a short notation with square brackets is also possible. The function is identical.
 +
 +<code php>
 +// Create an array with square brackets
 +$a = ['one', 'two', 'three'];
 </code> </code>
  
en/create/array.1540540457.txt.gz · Last modified: 26.10.2018 09:54 by rafael.wilms
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki