fork download
  1. <?php
  2. $element = (object) array(
  3. 'id' => 1,
  4. 'type' => image ,
  5. 'top' => 266,
  6. 'left' => 285,
  7. 'width' => 195,
  8. 'height' => 184,
  9. 'props' => array ('position', 'border-width', 'width', 'height', 'top', 'left',
  10. 'border-color', 'margin'
  11. )
  12. );
  13. $style='';
  14. $props=$element->props;
  15. foreach($props as $property){
  16. $style .= $property." : ".$element->$property."; ";
  17. }
  18. unset($property);
  19. echo $style;
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
position : ; border-width : ; width : 195; height : 184; top : 266; left : 285; border-color : ; margin : ;