Jangga
Junior Member
- Aug 8, 2016
- 196
- 11
Pls, I'm still stuck on this. I don't know how to check the last two numbers in my string if they end with two zeros. I was using strstr() but it wasn't it. I know jS could have been more appropriate but, I'm not good with jS. So, I'm opting for php
The variable is
$price = $_POST["pricetag"];
The user is to input a value & I want to check if it contains two zeros at the end cos that's what I want and if no two zeros, it should show error. But, how do I set the pointer to check the last two zeros in their price tags?
The variable is
$price = $_POST["pricetag"];
The user is to input a value & I want to check if it contains two zeros at the end cos that's what I want and if no two zeros, it should show error. But, how do I set the pointer to check the last two zeros in their price tags?