Reputation: 113
I have an game ip in my database, like so: "271.29.248.23:27912"
I want the substring to take the last 5 numbers "27912
" and also i want to delete the ":"
.
Is that possible and could someone help me?
And if possible i would like the numbers to be like this so it would be easier...
$ip = "271.29.248.23";
$port = "27912";
Please help me, i need this for a script :(
Upvotes: 0
Views: 430