Re: Fwd: Array + php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/13/2013 7:01 PM, El Ale... wrote:
Gente una consulta bastante off topic. Quiero meter un array en una clase y
no se como hacerlo se me ocurrio algo asi:

  <?
         class Listado_Completo
         {
             protected $datosArray =array(0=> array( "juan", "perez",
"2352562"),
                 1=>array("Marina", "Zafon", "32568952"),
                 2=> array("fulano", "de tal", "32149856");


            public function Get_Listado_Completo(){
                return $this->datosArray;
            }


             }
?>

Pero no puedo llamar a ninguno, alguien sabe como hacerlo?

Missing a right parenthese:

syntax is:
$var = array();
$var = array(array());

You wrote:
$var = array(array();  !!!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux