mercredi 28 décembre 2016

Returning value with condition through a function using PHP

I am trying to return a value to a function with condition

for example,

function thisFunction($para){
  return ($para == true)? "Yes":"No";
}

is that the right way to return????

What if i need to return an array object? what is the possible solution to do it ?

Aucun commentaire:

Enregistrer un commentaire