Created
August 27, 2020 19:23
-
-
Save phpfiddle/c037488ce97c7cb467a4e1e3c4536bc4 to your computer and use it in GitHub Desktop.
[ Posted by Mitch ] Mitchell_Laurie_Assign1.php
This file contains hidden or 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 | |
$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