I dont know what's wrong with this code? (3. Your First Function)


#1

This is my full code:







<?php
// Write your function below!
function displayName() {
print("Connor");
}
displayName();
?>



It prints my name to the preview box but still it says "Oops, try again. Did you remember to use echo or print, followed by your name?"


#2

try this

<?php
// Write your function below!
function displayName() {
	print "Connor";
}
displayName();
?>

#3

dear friends you can help me. I'm struck in this lesson,: ( 5. The Return Keyword )

if you help me i will learn this lesson. and it my code.






<?php
function displayName(){
print echo "abdul";
}
function retunName();
?>


#4

@chiprockstar83000 this is what your code should be

<?php
function returnName(){
	return "abdul";
}
echo returnName();
?>