Welcome Guest, Not a member yet? Register   Sign In
Split String and Number in PHP
#3

(03-02-2018, 04:31 AM)PaulD Wrote: Why don't you just do two fields, one for name and one for number.

I cannot see an explode function in your code.

After explode, you can use count to check the elements in the array or isset to see if the array element you expected exists or not and deal with the error however you wish.

Paul

Oh thats okay, the issue is i want to store the number only
Reply


Messages In This Thread
Split String and Number in PHP - by CharlesK - 03-02-2018, 02:42 AM
RE: Split String and Number in PHP - by PaulD - 03-02-2018, 04:31 AM
RE: Split String and Number in PHP - by CharlesK - 03-02-2018, 07:26 AM
RE: Split String and Number in PHP - by Wouter60 - 03-02-2018, 09:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB