Skip to content

Instantly share code, notes, and snippets.

@benklocek
Last active December 16, 2015 14:09
Show Gist options
  • Save benklocek/5446767 to your computer and use it in GitHub Desktop.
Save benklocek/5446767 to your computer and use it in GitHub Desktop.
<?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>';
@kevinelliott
Copy link

Hey, I know Heather! Really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment