Senin, 23 September 2013

PHP Indonesia - Facebook: Gan help please gan, ane masih kikuk soal php and ...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Publish Your Book on Kindle

Learn to self-publisher your book on Kindle. Boost your brand and credibility with this step-by-step training course for just $99. Enroll today.
From our sponsors
Gan help please gan, ane masih kikuk soal php and ...
Sep 23rd 2013, 08:11, by Eka Saputra

Eka Saputra 8:11am Sep 23
Gan help please gan, ane masih kikuk soal php and mysql. Ane punya kasus yg mungkin simple buat agan2 and sista tp susah buat ane. Kasusnya misal pada kode php ini:

if (($user['skills'] == "kelp1=diplo1=scou2==") or ($user['class'] == "heretic")) {
$level_limit = 1;}
else{
$level_limit = 2;}

nah pada keterangan "kelp1=diplo1=scou2==" itu, bagaimana caranya agar data yg terpanggil hanya "kelp1" saja tanpa ada data lain and pemisah = nya? Bantu ya gan gmana buat kode phpnya.

Eka Saputra 8:13am Sep 23
Up :D

Igi Shellshock 8:18am Sep 23
$data = explode("=", "kelp1=diplo1=scou2==");
if (($user['skills'] == $data[0]) blabla..

Eka Saputra 8:21am Sep 23
Thx kyu gan, you are truly helpful, oe coba dulu :D.

Eka Saputra 8:25am Sep 23
But wait gan, dari cth kode diatas yg agan buat, pertanyaan na gmana caranya agar data[0] yg muncul harus "kelp1" saja, krn yg ingin saya panggil cuma kelp1 saja yg lain diabaikan. Gmana tuh gan?

Igi Shellshock 8:29am Sep 23
ya data[0] itu harusnya isinya "kelp1" bro..atau coba dulu deh test di page lain

<?php
$data = explode("=", "kelp1=diplo1=scou2==");
echo $data[0];

yg muncul apa

Eka Saputra 8:33am Sep 23
Iya, gw coba dulu gan. Hehe thx a bunch ya

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar