Nov 25, 2009

Php Iteration - Object Overloading - Difference between iteration and overloading

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Php Iteration - Object Overloading - Difference between iteration and overloading

veerumits
i want to know that what is the difference between iteration and object overloading in PHP.
i read that both are same object overloading is old name of iteration, but i have doubt so please any one can help in this regard

what i know that :
* Iteration :- Loop the object
* used to Display property name and class value.
* foreach loop used : - only used in array and object iteration.
here i give example of iteration:

CODE
<?php
class abc{
var $user="Raju";
var $city="Delhi";
var $age= 25;
}
$obj=new abc;
echo "<table border=1>";
echo "<tr><td> property Name </td><td> property Value </td></tr>";
foreach($obj as $p=> $x){ echo "<tr><td> $p </td><td> $x</td> </tr>"; }
echo "</table>";
?>


output:-

property Name property Value
user Raju
city Delhi
age 25

every thing is fine but i am not fully understood this.

how it works. what is the behavior of this iteration. how we can say that it is object overload.

thanks

 

 

 


Comment/Reply (w/o sign-up)

yordan
You know, veerumits, this is not really a tutorial. You are not really explaining things, you are rather like asking for an explanation.
That's why I moved your topic here, where is most probably it's place.
Regards
Yordan

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Php Iteration Overloading Difference Iteration Overloading


    Looking for php, iteration, object, overloading, difference, iteration, overloading

See Also,

*SIMILAR VIDEOS*
Searching Video's for php, iteration, object, overloading, difference, iteration, overloading
advertisement



Php Iteration - Object Overloading - Difference between iteration and overloading

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com