logo SnippetVamp

php 141css 88fonctions 82astuce 77javascript 70html 56fichiers 35jquery 31securite 19texte 17bootstrap 14parser 14debug 12graphisme 11python 11responsive 8pluXML 7bash 6PHP 6crossbrowser 4vanilla 4ajax 3mail 3markdown 3mobile 3regex 3apache 2auto_ 2browser 2conversion 2error 2evenements 2excel 2form 2ips 2lib 2linux 2SQL 2vba 2cinema 1compteur 1dothtaccess 1effets 1erreurs 1fallback 1filter 1images 1pluxml 1social 1SQLite 1xml 1
SnippetVamp 3.1b - 2025 - GNU GPL - FAQ
#key - object2array - récupérer un object sous forme d'un tableau
function object2array($res) {
  if (is_object($res)) $res = get_object_vars($res);
  while (list($key, $value) = each($res)) {
    if (is_object($value) || is_array($value)) {
      $res[$key] = obj2array($value);
    }
  }
  return $res;
}
			
php fonctions conversion
http://php.net/manual/fr/function.get-object-vars.php
public - 20/05/2013 - Add to pack - texte seul - permalink