Last active
December 16, 2015 14:09
-
-
Save benklocek/5446767 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$array_name[0] = 'Keith Pelczarski'; | |
$array_name[1] = 'Heather Harding'; | |
$array_bio[0] = 'keith bio'; | |
$array_bio[1] = 'heather bio'; | |
$array_photo[0] = 'url/to/imag.jpg'; | |
$array_key[0] = '6f5d82cff2fc45339bc54ec61f9e74fb'; | |
$array_key[0] = ''; | |
$records = array(); | |
foreach($array_name as $k => $v){ | |
$records[$k]['name'] = $v; | |
$records[$k]['bio'] = @$array_bio[$k]; | |
$records[$k]['photo'] = @$array_photo[$k]; | |
//... | |
} | |
echo '<pre>'.print_r($records, true).'</pre>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, I know Heather! Really.