Reputation: 21
When I use str_sub
to get the first 3, I get the result like this,
Actually, I want to get the first 3 digits,
like, 216-555-2549, I want to have 216, things like that. How can I get it?
Upvotes: 0
Views: 71
Reputation: 97
your argument for string =
does not need a ""
try to change string= "phone_number"
to string = phone_number
Upvotes: 3