Solved

remove the first character to the left of a string

Posted on 2008-06-20
4
9,135 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

756 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