Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created August 27, 2020 19:23
Show Gist options
  • Save phpfiddle/c037488ce97c7cb467a4e1e3c4536bc4 to your computer and use it in GitHub Desktop.
Save phpfiddle/c037488ce97c7cb467a4e1e3c4536bc4 to your computer and use it in GitHub Desktop.
[ Posted by Mitch ] Mitchell_Laurie_Assign1.php
<?php
$MyFirstVariable = 'Mitchell'; //making of my first variable
$Mitchell = '$MyFirstVariable';
echo "My first variable was named " , $Mitchell , "."; //Outputs My first variable was named $MyFirstVariable.
echo " The value of my variable was " , $MyFirstVariable , "."; //Outputs The value of my variable was Mitchell.
$empty = array(); //creates empty array
$array = array('Mitchell' , 'Laurie' , 'Fall semester 2020'); //creates an array with my firstname, lastname, and semester
$array2 = range(1 , 50);
var_dump($MyFirstVariable . $Mitchell); //Outputs the sum of the answers from 2 and 3
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment