Skip to content

Instantly share code, notes, and snippets.

@klhall1987
Last active October 9, 2015 13:35
Show Gist options
  • Save klhall1987/6bb4781e3bb26591e36e to your computer and use it in GitHub Desktop.
Save klhall1987/6bb4781e3bb26591e36e to your computer and use it in GitHub Desktop.
List Example
<?php
$phone = array( 'HTC', 'One M8', 'Android' );
list($brand, $model , $os ) = $phone;
//echos "I have a HTC One M8 running Android."
echo "I have a $brand $model running $os.";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment