/    Sign up×
Community /Pin to ProfileBookmark

Is My var_dump() Typing Method Valid ?

Folks,

Can you spot the different ways I typed each var_dump() ?
Note the comments. It mentions my experimenting findings. If you see any comment in error then object to it and then let me know.

Thanks

[code]
//Var_dump() Using Formula:
echo __LINE__; echo ‘<br>’;
echo ‘var_dump() Arrays’; echo ‘<br>’;
echo var_dump($array_1); //Correct. Array Variable not within quotes.
echo ‘<br>’;
echo var_dump(‘$array_2’); //Don’t ‘Single Quote’ the Array Variable.
echo ‘<br>’;
echo var_dump(“$array_3”); //Don’t “Double Quote” the Array Variable.
echo “<br>”;
echo var_dump($array_4); //Correct. Array Variable not within quotes.
echo ‘<br>’;
echo var_dump($array_1,$array_2,$array_3,$array_4); //Correct. Array Variables not within quotes. More than one Variable (including Arrays) can be added.
echo ‘<br>’;
*/
[/code]

to post a comment
PHP

1 Comments(s)

×

Success!

Help @developer_web spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...