How how do you change a value inside a variable, i'm having trouble executing this but can't find any examples for dummies.
jelly46 0 Newbie Poster
Recommended Answers
Jump to PostDon't use
global
if you can possibly help it.Changing a variable's value in normal usage:
echo "<pre>"; $myVar = 10; echo $myVar . "\n"; $myVar = 20; echo $myVar . "\n"; $myVar = $myVar + 30; //gives 50 - can use shortcut of $myVar += …
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.