+ 1
Operators
Where can we use prefix and postfix operator in real life entities
3 Answers
0
It Depends some time you want a variable to be incremented in a loop you could use the prefix example
//genrating a new user name
$username= $POST["username"];
for ($i=0;i <$username.length(); $i++){
$username+=$i;
}
0
Tq
- 2
George S Mulbah
Did you check the example code?