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!!!!
Problem Setting property of a Class In Zend Studio
Moderator: General Moderators
- PHPHorizons
- Forum Contributor
- Posts: 175
- Joined: Mon Sep 14, 2009 11:38 pm
Re: Problem Setting property of a Class In Zend Studio
Which version of Zend Studio?
I tested the code in Zend Studio 5.5.1 and it worked 100%.
I tested the code in Zend Studio 5.5.1 and it worked 100%.