Newbie in PHP
Posted: Sun Feb 11, 2007 8:56 pm
feyd | Please use
When it execute, it doesnot display anything. Can you explain?
Thanks,
Hung.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have this code block:Code: Select all
class A
{
var $loc;
function A($val)
{
$loc = $val;
}
}
$obj = new A(5);
echo $obj->loc;Thanks,
Hung.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]