Page 1 of 1

Problem Setting property of a Class In Zend Studio

Posted: Tue Aug 10, 2010 1:54 pm
by Hano1989
Hi to all....im trying to set the property of my class as follows:
<?php
class Person
{
var $first_name;
var $last_name;

function Display()
{
echo "{$this->first_name} {$this->last_name}";
}
}

$p = new Person();
$p->first_name = 'Haroon';
$p->last_name = 'Niazi';
$p->Display();
?>

when i save this code to a php file on a notepad and run it on my localhost it works perfectly fine.. but when i do the some coding in my zend studio it does not update the value of the attributes of the first and last name of my class....please help!!!!

Re: Problem Setting property of a Class In Zend Studio

Posted: Tue Aug 10, 2010 9:16 pm
by PHPHorizons
Which version of Zend Studio?

I tested the code in Zend Studio 5.5.1 and it worked 100%.