In message <[EMAIL PROTECTED]>, Mukesh Kumar
<[EMAIL PROTECTED]> writes
>hello all,
>
>$dd="kkkkkjjjjjyysdjlkjlksdlkcjlksdfslkdfjslkdfjsdlk";
>if want 10 character is variable $dd
>
>can anybody guide me.

>
>in ASP there is a function left
>left(variable,10)
substr($dd, 0, 10);  // returns "kkkkkjjjjj"
  
>for right(variable,20)
 substr($dd, -10);   // returns slkdfjsdlk")  

>
>Any guide

Manual at
http://es2.php.net/substr

>
>Mukesh

-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to