Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Using a string that does not match a variable, and an array of variable names:
SUBMITTED BY:
henry1874w
DATE:
June 26, 2017, 5:09 p.m.
FORMAT:
Text only
SIZE:
180 Bytes
Raw
Download
Tweet
HITS:
212
Go to comments
Report
<?php
$firstname = "Peter";
$lastname = "Griffin";
$age = "41";
$name = array("firstname", "lastname");
$result = compact($name, "location", "age");
print_r($result);
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus