Question


Ketan

how to remove first character from string in php ?

Date = 2015-03-24

<?php

   $sentance
="Hi, I am Ketan";
// remove Hi, from $sentance. Thank you
?>

Comments by experts


Rajesh Kakadiya
Date = 2015-03-24

It very simple try this code

<?php
$sentance
substr($sentance,4); // it will remove first 4 character from string hence it will start from I
?>


Type your Comment below and click to send comment