Hello, I am somehow new to* freelancers and I badly want new projects and good reviews.
Did you mean all the country codes or just the country code of a specific country?
If you mean only for a country then I guess this should work pretty fine
$result = preg_replace("/^\+*?{$country_code}/", '',$phone_no);
If for all country then I should give some more thought.
Thank you. Kindly send a message so that we can talk on this.