Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
[Need Help] Variable's Character Length
Old 03-26-2008, 06:22 PM [Need Help] Variable's Character Length
Finney's Avatar
Skilled Talker

Posts: 91
Name: El Finney
Location: England, UK
Trades: 0
I need help trying to figure out how to show a limited amount of characters from a variable..

---------------------------------

Eg.

if $show = 'sdajdhksjahd jsahd jashd jasdh jkasasdasdgui' instead of
showing the whole thing you limit it to showing only the first 15
characters like: 'sdajdhksjahd js'

---------------------------------

I am sorry for the poor explanation but I hope you understand what I am trying to achieve.

Future regards to all help give..

Thanks,
Finney
__________________
»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE
Finney is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-26-2008, 06:43 PM Re: [Need Help] Variable's Character Length
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
substr() is your friend:
http://www.php.net/manual/en/function.substr.php
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 03-27-2008, 06:22 AM Re: [Need Help] Variable's Character Length
Finney's Avatar
Skilled Talker

Posts: 91
Name: El Finney
Location: England, UK
Trades: 0
Hey, thanks for the help, just what I am looking for

Talkupation +1
__________________
»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE

»
Please login or register to view this content. Registration is FREE
Finney is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to [Need Help] Variable's Character Length
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11461 seconds with 12 queries