?
Solved

remove the first character to the left of a string

Posted on 2008-06-20
4
Medium Priority
?
9,139 Views
Last Modified: 2010-05-18
hi,
How do i remove the left most character from a string?
0
Comment
Question by:markmchugh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 2000 total points
ID: 21830548
echo substr($string, 1);
0
 
LVL 2

Expert Comment

by:kszurek
ID: 21830550

<?PHP
$a = 'test';
echo substr($a, 1);

Open in new window

0
 
LVL 48

Expert Comment

by:hernst42
ID: 21830559
http://www.php.net/substr
echo substr('abcdef', 1);     // bcdef
0
 

Expert Comment

by:zachera
ID: 22474889
[code]<?php
echo substr($string,1);
?>[/code]
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question