Jump to content

Beginner needs help...please...


jmhyer123

Recommended Posts

I have a form that a user enters a number into. When they submit it the script needs:

 

1) The Number entered

2) The first two/three numbers of the number entered depending on the length

 

My question is: How do I/What function do I use to get the first 2/3 numbers of the entered number.

 

I can setup the if/then statement to determine if it gets the first 2 or the first 3 numbers but what do I use to get them. I was thinking it would be explode() but there is no identifier.

 

Anybody have any ideas. I hope this is clear enough if not let me know and I can post the script I am using.

Link to comment
https://forums.phpfreaks.com/topic/45053-beginner-needs-helpplease/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.