Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to lookup value inside object php

$array = [
    'clothes' => 't-shirt',
    'size'    => 'medium',
    'color'   => 'blue',
];
 
extract($array);
 
echo("$clothes $size $color"); // t-shirt medium blue
Source by code.tutsplus.com #
 
PREVIOUS NEXT
Tagged: #lookup #object #php
ADD COMMENT
Topic
Name
4+2 =