CariDotMy

 Forgot password?
 Register

ADVERTISEMENT

View: 2463|Reply: 1

php string

[Copy link]
water_boy This user has been deleted
Post time 13-10-2006 09:26 AM | Show all posts |Read mode
macamana nak ambil perkataan tertentu dalam sesuatu ayat?? contohnya "[email protected]". Saya hanya mahu pilih perkataan "salam" daripada email tersebut. Kalo tak silap php ada string function yg boleh buat, but saya tak tahu. please forumer sumer tunjuk ajar. thanks
Reply

Use magic Report


ADVERTISEMENT


fnd99 This user has been deleted
Post time 14-10-2006 06:51 PM | Show all posts
$email = '[email protected]';
$string = explode('@',$email);
echo $string[0]; // output : salam

Rate

1

View Rating Log

Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

 

ADVERTISEMENT


Forum Hot Topic

 

ADVERTISEMENT


 


ADVERTISEMENT
Follow Us

ADVERTISEMENT


Mobile|Archiver|Mobile*default|About Us|CariDotMy

28-12-2024 11:36 PM GMT+8 , Processed in 0.050367 second(s), 15 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

Quick Reply To Top Return to the list