Answers for "php array int"

PHP
1

assign $variable of key value pair array to multiple variables php

$healthStructureData = [
            'product' => $product,
            'website_data' => $website_data,
            'total_keywords' => $total_keywords,
            'certificate_status' => $certificate_status,
            'total_user_websites' => $total_user_websites,
        ];

foreach ($healthStructureData as $key => $value) {
  $$key = $value;
}
Posted by: Guest on July-22-2020
0

php numeric array

Array
(
    [0] => earth projection
    [1] => landslide
    [2] => earthquake
    [3] => tremor
    [4] => rockfall
)
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language