Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to store array in variable php

$data = array(
    'something1',
    'something2',
    'something3',
);
extract($data, EXTR_PREFIX_ALL, 'var');
echo $var0; //Output something1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #store #array #variable #php
ADD COMMENT
Topic
Name
5+9 =