What will be the output of the following PHP code?
<?php
$number = array(0,1,two,three,four,5);
number);
print_r($num);
?>Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
30
Questions
2/2
Page
Pick an option on a question to see the right answer and solution.
<?php
$number = array(0,1,two,three,four,5);
number);
print_r($num);
?>Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.
<?php
$name = "What is your name?"
if (preg_match("/name/"),$name)
echo "My name is Will Pitt ";
else
echo "My name is not Will Pitt ";
if (preg_match("/are/"))
echo "I am great"
else
echo "I am not great";
?>Select an option to see the answer and solution.
Select an option to see the answer and solution.
<?php
$str = "Hello! My name is Cameron Fox. Coffee?"
$find = array('/is/','/coffee/');
$replace = array('/was/','/tea/');
echo preg_replace (replace, $str);
?>Select an option to see the answer and solution.
Select an option to see the answer and solution.
<?php
$line = "You like dogs. I hate dogs. We should marry."
line);
print_r($sen);
?>Select an option to see the answer and solution.
Select an option to see the answer and solution.
Select an option to see the answer and solution.