Operators | Sololearn: Learn to code for FREE!

0

Operators

Where can we use prefix and postfix operator in real life entities

11/11/2020 4:50:31 AM

Nandini Reddy

3 Answers

New Answer

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

-1

George S Mulbah Did you check the example code?