The Return Keyword


#1

Hello I am stuck in this exercise, help me out,






<?php

   returnName(){
       $name = "Shaik Jawad";
       return $name;
       } 
       returnName();
  ?>
</body>

I am receiving this error message :

Oops, try again. Did you remember to declare your function using function returnName( ) { ..


#2

at your function declaration:

<?php
returnName(){

you don't use the function keyword:

<?php
function returnName(){

#3

2 posts were split to a new topic: Return keyword


#5