PEHLA KALMA

PEHLA KALMA
Sanaullah Sajid

Multiple values returns from php function

Multiple values returns from php function


mobiles sms send to pakistan..funny sms,poetry sms,sad poetry sms in urdu.

< ?php
class engineer
{
    public $name;
    public $email;
    public $url;
}

function get($sa,$val,$tan)
{

    $out  = new engineer();
    $out->name = "Engineersoftpk";
    $out->email = "sanaullahsajidmukhtiar@gmail.com";
    $out->url = "www.engineersoftpk.com";
    return $out;

}

$xyz = get(3,4,9);

echo $name = $xyz->name;   echo "
";
echo $email = $xyz->email; echo "
";
echo $url = $xyz->url;
? >

Output//
engineersoftpk
sanaullahsajidmukhtiar@gmail.com
www.engineersoftpk.com