PHPs version of the ASP functions left() and right()
|
Submitted By:
pemcconnell
|
|
Rating:
 
|
| Views: 18,612 |
Language: PHP |
| Last Modified: October 28, 2009 |
Instructions: Add functions to top of code, then call them using the following syntax:
|
Snippet
<?php
function right($value, $count){
return substr($value, ($count*- 1));
}
function left($string, $count){
return substr($string, 0, $count);
}
?>
Copy & Paste
|
|
|
Be Social
Reference Sheets
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
|
What's Here?
- Members: 358,767
- Replies: 966,839
- Topics: 163,520
- Snippets: 4,999
- Tutorials: 1,330
- Total Online: 3,807
- Members: 135
- Guests: 3,672
|