Wildcard Question

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 13
Joined: Thu Oct 10, 2002 10:37 pm
Location: Ukraine

Post by serg_dz » Mon Nov 25, 2002 12:59 am

To my mind problem is there:

Code: Select all

$twodigits = substr($_POST['zip_code'], 2); 

As far as I remember the syntax of substr is:

string substr ( string string, int start [, int length])


Code: Select all

$rest = substr("abcdef", 1, 3); // returns "bcd"

Try this, may be this is an answer.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 4 guests