Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Create an array from variables and their values:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 5:07 p.m.
FORMAT:
Text only
SIZE:
145 Bytes
Raw
Download
Tweet
HITS:
223
Go to comments
Report
<?php
$firstname = "Peter";
$lastname = "Griffin";
$age = "41";
$result = compact("firstname", "lastname", "age");
print_r($result);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus