I am geting error at $this->playarray();, isn't this how we can call memebr function of a class?
<?php
class myarray
{
function playarray()
{
$temparray= array();
$temparray = array ( 'a' => 'you' , 'b' => 'me', 'c' => 'they' );
foreach ($temparray as $simple => $value)
{
echo "Index".$simple. "Value".$value;
}
}
function onemore()
{
myarray:layarray();
$this->playarray();
}
}
myarray:nemore();
?>
<?php
class myarray
{
function playarray()
{
$temparray= array();
$temparray = array ( 'a' => 'you' , 'b' => 'me', 'c' => 'they' );
foreach ($temparray as $simple => $value)
{
echo "Index".$simple. "Value".$value;
}
}
function onemore()
{
myarray:layarray();
$this->playarray();
}
}
myarray:nemore();
?>