ok i want to be able to take in a number from a form ($_POST['cc']) and check the value of each number in the string 1 by 1. is there a PHP fuction similar to the JAVA charAt command? i would like to say something like $x =(1 , $cc) and get $x to equal the first number in the string $cc.
Even though it's a string, you can use
$_POST['cc']{3}; // that would be the 4th character as it's zero to start
And you can use [man]strlen[/man] to get the whole length of it.