?
Solved

remove last 4 chars of string

Posted on 2006-06-17
3
Medium Priority
?
169 Views
Last Modified: 2006-11-18
how to do the above?
0
Comment
Question by:ellandrd
[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
3 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 2000 total points
ID: 16927243
$str = substr($str, 0, strlen($str)-4);

-r-
0
 
LVL 16

Author Comment

by:ellandrd
ID: 16927254
i tried that...

my code:

<a href="'.PAGE_1_FILENAME.EXTENSION.'" title="'.substr(PAGE_1_FILENAME,0,strlen(PAGE_1_FILENAME)-4).'" accesskey="'.PAGE_1_ACCESS_KEY.'">'.PAGE_1_FILENAME.'</a>
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 16927259
That should work fine.

-r-
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

765 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