I need some help with a small php problem. But i dont know how to approach it.
There is a function called
<td><?=$currentCourse['price']?></td>
What i need this function to do is to take 20% off whatever the $currentCourse[‘price’].
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For creating a function, you need to use
()and not[]. The[]is used to get the array index for arrays!For your function, you can do this:
Or if you wanna use the same thing without a function, you can do this way:
But instead of using short tags, I would suggest you to use this:
Coz, by default,
short_tagsareOff.Round Function