![]() |
|
12-25-2013
|
31 |
|
Registered User
Join Date: Aug 2011
Location: En La Caja
Posts: 1,679
|
The parameter's value is defined every time the function is called. If you call the function with no value in that parameter, the function will be evaluated without a value for the parameter. ex: PHP Code:
PHP Code:
If you want to think of it as a real life example, think of it like this: I go to the market and decide to get some items. I must tell the shopkeeper how much of each item I want, or the shopkeeper will be unable to get the item for me. Every time I want to get an item, I have to tell the shopkeeper how many of that item I want, and he (or she) doesn't automatically assume I want a certain amount of an item. |
|
01-30-2014
|
32 |
|
Back from the dead?
Join Date: Feb 2013
Location: Australia
Posts: 2,533
|
I am stuck yet again; PHP Code:
Spoiler
Thank you BBoyEatsBacon for that explanation, I understand it now! |
|
01-30-2014
|
33 |
|
Should be fixed.
Join Date: Aug 2011
Posts: 6,359
|
You have a stray semi-colon here: if ((income) >= 100);{ |
|
01-31-2014
|
34 |
|
necrobumper apprentice
Join Date: Nov 2013
Location: holiday shop
Posts: 100
|
|
|
01-31-2014
|
35 | |
|
Delteria Manager
Join Date: Feb 2012
Location: USA
Posts: 2,474
|
|
|
|
02-01-2014
|
36 |
|
Graalian
Join Date: Sep 2011
Location: Belle Isle
Posts: 4,481
|
What is the best coding language to learn for a beginner? We've got JavaScript, HTML, Python, PHP etc. What is the most practical for a beginner?
|
|
02-01-2014
|
37 |
|
Era Scum
Join Date: Nov 2011
Posts: 2,264
|
|
|
02-01-2014
|
38 |
|
Banned
Join Date: Sep 2012
Posts: 1,059
|
Php was my first language. I liked it because it's easy to publish scripts online.
|
|
02-01-2014
|
39 |
|
Cyril Rain
Join Date: Dec 2012
Location: Texas, USA
Posts: 170
|
Do HTML. It's probably the bare bones of them all. I did HTML and PHP together as my first.
|
|
02-01-2014
|
40 |
|
Era Scum
Join Date: Nov 2011
Posts: 2,264
|
Listen to them, maybe I chose the wrong one 0.0
|
|
02-02-2014
|
41 |
|
Graalian
Join Date: Sep 2011
Location: Belle Isle
Posts: 4,481
|
Started doing html
|
|
02-12-2014
|
42 |
|
Verified ✔️
Join Date: Sep 2011
Location: Australia
Posts: 6,041
|
I've been doing python for almost a week now and i've gotten stuck. Here's what I have to do: PHP Code:
PHP Code:
|
|
02-14-2014
|
43 | |
|
Registered User
Join Date: Jun 2013
Location: Zol's Pub
Posts: 373
|
100**0.5 is the same as 100^0.5, which would be 10... |
|