0
With a problem here, I need to separate an IP string into two parts, between the address and the port.
Example:
$string = 127.0.0.1:7777;
$string = px01.carbonhost.com.br:7786
Turn:
$string1 = 127.0.0.1;
$string2 = 7777;
$string1 = px01.carbonhost.com.br;
$string2 = 7786;
So it would be the easiest way for me, the other solution would be to make the user put the IP and Port separately, the problem is that many have already registered the IP along with the port.
Can someone help me?
if the problem is having the DB registered together and you are separating in the application, compensates to separate via SQL in 2 fields (direct in DB)
– Bacco