php functions

Can someone please tell me the reason for the "punctuation" argument in this function please.

[code]


<?php
function writeName($fname,$punctuation)
{
echo $fname . " Refsnes" . $punctuation . "<br />";
}

echo "My name is ";
writeName("Kai Jim",".");
echo "My sister's name is ";
writeName("Hege","!");
echo "My brother's name is ";
writeName("St

Comments

  • Hi

    Just ran it on Zend, cant find anything wrong, u have included you php file with that functions ?

    it works here , hope i helped


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion