<?php
$guests = array(
1 => array(
'name' => 'Mr Miller',
'affiliation' => 'groom',
'group' => 'friends',
'circle' => 'neighbours'
),
2 => array(
'name' => 'Mrs Henderson',
'affiliation' => 'bride',
'group' => 'family',
'circle' => 'neighbours'
),
3 => array(
'name' => 'Mr Schneider',
'affiliation' => 'groom',
'group' => 'family',
'circle' => 'mother'
)
);
$f_guests = array_search('groom', $guests); // $key = 2;
echo $f_guests
- Output for 5.4.0 - 5.4.28
- Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/hGLie on line 26
Process exited with code 255. - Output for 5.3.0 - 5.3.28
- Parse error: syntax error, unexpected $end, expecting ',' or ';' in /in/hGLie on line 26
Process exited with code 255.
preferences:
182.9 ms | 1395 KiB | 65 Q