Looking for ?

Translate

Best Way On How to Remove First and Last Character from String in PHP

If you are a beginner or a professional, every programmer need guild most times. On this, you can do the following



CODE:

<?php

$myString = "WakabiaAdmin";
$newString = substr($myString, 1,-1);
echo $newString;

?>

See the output on the below screenshot



SHARE THIS POST

About Wakabia

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment