logo SnippetVamp

php 114astuce 109fonctions 91css 76javascript 72html 62fichiers 32jquery 27texte 20securite 19bootstrap 14graphisme 14parser 13debug 11python 11responsive 9no-js 7pluXML 7crossbrowser 5evenements 5vanilla 5ajax 4conversion 3form 3auto_ 2bash 2dothtaccess 2lib 2markdown 2mobile 2promise 2effets 1erreurs 1fallback 1filter 1helium 1mail 1social 1
SnippetVamp 3.2 - 2026 - GNU GPL - FAQ
1 - 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 - text only - permalink