Solved

remove last 4 chars of string

Posted on 2006-06-17
3
162 Views
Last Modified: 2006-11-18
how to do the above?
0
Comment
Question by:ellandrd
  • 2
3 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Please show me easiest post form. 3 31
what is best version of php to use 6 46
php call to a non-object 3 33
PHP - AJAX and MySQL it works only if the value is a number 12 36
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now