Answers for "php read object object"

PHP
0

object php

//object init
  $object = (object) [
    'propertyOne' => 'foo',
    'propertyTwo' => 42,
  ];
Posted by: Guest on June-16-2020
0

php use variable as object key

$nid_property = 'my_nid';
$nid = $row->{$nid_property};
Posted by: Guest on December-04-2020

Browse Popular Code Answers by Language