why my php doesnt support class?
Posted: Fri Jan 27, 2006 6:21 am
I got RHLE4 on my machine. php 4.3+. please help me with the problem shown below
fragment of class:
class Queue {
var $q_array = array();
function push($object) { array_push($this->q_array,$object);}
..............
}
php fragment:
<?php
$queue = new Queue;
$queue.push("1");
......................
?>
error message:
Fatal error: Call to undefined function: push() in /var/www/html/scott/run_hits.php on line 2
fragment of class:
class Queue {
var $q_array = array();
function push($object) { array_push($this->q_array,$object);}
..............
}
php fragment:
<?php
$queue = new Queue;
$queue.push("1");
......................
?>
error message:
Fatal error: Call to undefined function: push() in /var/www/html/scott/run_hits.php on line 2