This home page is _personal_
This commit is contained in:
35
personal-home-page/helloworld.php
Normal file
35
personal-home-page/helloworld.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
$name = 'Flavio';
|
||||
|
||||
var_dump($name);
|
||||
|
||||
$age = 20;
|
||||
|
||||
var_dump($age);
|
||||
|
||||
$base = 20;
|
||||
$height = 10;
|
||||
|
||||
$area = $base * $height;
|
||||
|
||||
$test = 'an example';
|
||||
|
||||
$example = "This is $test";
|
||||
|
||||
print $example . "\n";
|
||||
|
||||
$firstName = 'Flavio';
|
||||
$lastName = 'Copes';
|
||||
|
||||
$fullName = $firstName . ' ' . $lastName;
|
||||
|
||||
print '$fullName = ' . $fullName . "\n";
|
||||
|
||||
print strlen($fullName) . "\n";
|
||||
|
||||
$weirdName = str_replace('avio', 'ower', $fullName);
|
||||
|
||||
print '$weirdName = ' . $weirdName . "\n";
|
||||
|
||||
print 'exploded $weirdName = ' . var_dump(explode(' ', $weirdName)) . "\n";
|
Reference in New Issue
Block a user