Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/09/2013, 09:54
Gloton
 
Fecha de Ingreso: octubre-2006
Mensajes: 227
Antigüedad: 17 años, 6 meses
Puntos: 3
Respuesta: Forma en que aparece un dato

Cita:
Iniciado por NUCKLEAR Ver Mensaje
Como ya te dijeron se están guardando datos serializados. Es una manera amigable(y creo que la única) de guardar por ejemplo un array - que es el caso -

lee: http://php.net/manual/es/function.serialize.php


Código PHP:
Ver original
  1. <?php
  2. var_dump(unserialize('a:2:{i:2;a:2:{s:5:"title";s:11:"Otro titulo";s:4:"body";s:38:"<strong>el cuerpo del mensaje</strong>";}s:12:"_multiwidget";i:1;}'));
  3.  
  4.  
  5. // responde
  6. array (size=2)
  7.   2 =>
  8.     array (size=2)
  9.       'title' => string 'Otro titulo' (length=11)
  10.       'body' => string '<strong>el cuerpo del mensaje</strong>' (length=38)
  11.   '_multiwidget' => int 1
  12.  ?>
excelente, muchas gracias