RE: [PHP-ES] Como puedo saber cuantos elementos tiene un array ??

From: Date: Thu, 02 Nov 2000 14:20:29 +0000
Subject: RE: [PHP-ES] Como puedo saber cuantos elementos tiene un array ??
Groups: php.general.es 
Request: Send a blank email to general-es+get-3088@lists.php.net to get a copy of this message
Si lo que quieres es conocer la cantidad y el array es numerico basta con int count($array) ahora si quieres imprimir un arreglo de enteros function imprime_arreglo($arreglo) { echo "<UL>\n"; foreach ( $arreglo as $item ) { echo "<LI>$item\n"; }; echo "</UL>\n"; } ej de llamada imprime_arreglo($arreglo); ej de salida * insert into status(id_user,name_t)values(1,'aaaa') * select id from status where id_user=1 and name_t='aaaa' * insert memo(id_user,name_t,memo_m)values(1,'substr(asdasd,0,50)','asdasd') * select id from memo where name_t='substr(asdasd,0,50)' and id_user=1 * insert into r_memo(id_user,id_entabla,id_memo,id_tablaname,tabla_t)values(1,cambiar1,cam biar2,14,'status') -----Mensaje original----- De: cas [mailto:cas@idecnet.com] Enviado el: Jueves, 02 de Noviembre de 2000 10:52 a.m. Para: lista@phpes.com Asunto: [PHP-ES] Como puedo saber cuantos elementos tiene un array ?? Hola, quisiera saber cuantos elementos tiene un array ?? --------------------------------------------------------------------- Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#3088) next »