$Var = substr(""abcdef"", -4, 1);
<?php
function time($string)
{
echo strtr("Towe Pa55", "ow5", $string);
}
time("ims");
?><?php
function test($int)
{
if ($int == 1)
echo "This Works";
if ($int == 2)
echo "This Too Seems To Work";
}
test(1);
TEST(2);
?><?php
function mine($num)
{
$num = 2 + $num;
echo $num;
}
mine(3);
?><?php
function constant()
{
define("GREETING", "Welcome to Narnia");
echo greeting;
}
?><?php
function constant()
{
define("GREETING", "Welcome to Narnia",true);
echo greeting;
}
?><?php
function start($string)
{
if ($string < 45)
return 20;
else
return 40;
}
$t = start(90);
if ($t < 20)
{
echo "Have a good day!";
}
else
{
echo "Have a good night!";
}
?><?php
$var = 10;
function one()
{
echo $var;
}
one();
?><?php
$str = addslashes('What does "yolo" mean?');
echo($str);
?><?php
function TV($string)
{
echo "my favourite TV show is ".$string;
function b()
{
echo " I am here to spoil this code";
}
}
function b()
{
echo " I am here to spoil this code";
}
b();
?><?php
function TV($string)
{
echo "my favourite TV show is ".$string;
function b()
{
echo " I am here to spoil this code";
}
}
function b()
{
echo " I am here to spoil this code";
}
b();
TV("Sherlock");
?><?php
function mine($num)
{
$num = 2 + $num;
echo "$num";
}
mine(3);
?><?php
function movie($int)
{
$movies = array("Fight Club", "Kill Bill", "Pulp Fiction");
echo "You Do Not Talk About ". $movie[$integer];
}
movie(0);
?><?php
function email()
{
$email = ’[email protected]’;
$new = strstr($email, ‘@');
echo $new;
}
email();
?>