Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,194,472 members, 7,954,846 topics. Date: Saturday, 21 September 2024 at 10:48 AM |
Nairaland Forum / Science/Technology / Programming / Difference Between Arguments And Parameters In PHP (2410 Views)
How Can I Build A Twitter like @mention System In PHP? / Is This Code Logical? Function Parameters Insert Statement / Difference Between System Software And Application Software (2) (3) (4)
Difference Between Arguments And Parameters In PHP by maekhel(m): 8:52am On Jan 07, 2015 |
We will be looking at an interesting topic today: Difference Between Arguments And Parameters. No doubts most of us do use these two terms interchangeably while working with functions. New to functions? read my other tutorial Functions In PHP. These two terms can be confusing and are mostly used in place of the other, but as a programmer you should be able to identify and use your terms properly.So what are arguments and parameter? Let start with Arguments. Arguments are the passed to a function when the function is called. Those items supplied to a function are what is referred to as argument. While Parameters on the other hand are passed to a function when it is declared or created. These items passed to a function are what the function is a excepting as arguments. Sound confusing right? Let clarify things with a simple example: <?phpConclusion The example should make things more clearer now, so learn and start using the right terms. I hope this brief tutorial was helpful. Comments, questions, suggestions and views are all welcomed, will love to hear from you. Also remember to subscribe to our newsletter to receive more of great tutorials. source: http://tutorialslodge.com/difference-arguments-parameters-php/ |
Re: Difference Between Arguments And Parameters In PHP by jboy01(m): 12:58pm On Jan 07, 2015 |
maekhel:bro! i think u are mixing things up here, u are interchanging argument to parameter. function and procedure receive argument to parameter. |
Re: Difference Between Arguments And Parameters In PHP by maekhel(m): 8:40pm On Jan 07, 2015 |
jboy01:I think you are the one mixing it up. |
Re: Difference Between Arguments And Parameters In PHP by phpier: 7:42am On Jan 08, 2015 |
jboy01:bro .. u are d one mixn tins up .. the op explanation on argument and parameter is vry correct . |
Re: Difference Between Arguments And Parameters In PHP by javadoctor(m): 8:07am On Jan 08, 2015 |
I hate php |
Re: Difference Between Arguments And Parameters In PHP by drealboy(m): 9:32am On Jan 08, 2015 |
javadoctor: why |
Re: Difference Between Arguments And Parameters In PHP by blenyo11(m): 9:58am On Jan 08, 2015 |
Na waooo.. Another one don start here? Okay now. I de follow |
Re: Difference Between Arguments And Parameters In PHP by jboy01(m): 11:05am On Jan 08, 2015 |
maekhel:bro sorry for the false attack, i read ur post again and i see that its correct. |
Re: Difference Between Arguments And Parameters In PHP by blenyo11(m): 11:41am On Jan 08, 2015 |
I said it! I am following |
Re: Difference Between Arguments And Parameters In PHP by guru01(m): 2:11pm On Jan 08, 2015 |
lwkmd |
(1) (Reply)
PHP Socket Programming To Send And Receive XML File Data / Between computer science and software engineering / Microsoft Access And Excel
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 22 |