Current time: 08-17-2018, 01:13 PM Stay in touch via Twitter Facebook RSS Feed
Ada Baiknya anda baca Peraturan Forum ForNesia Disini Dan Disitu Sebelum Terlambat!
System Registration Forums Mulai Kedepan Sewaktu waktu akan Di Tutup.
Silahkan Dibaca Mengenai Auto Pruning User . Agar tidak ada pertanyaan lagi tentang kehilangan akses forum.



[Share] fungsi str_replace

06-30-2015 01:58 PM fungsi str_replace
#1


dokgabriel Away
Programer Tamfan
FNS Member
**

Posts: 163
Joined: Jul 2014

Reputation:

FCoin: 11.40ƒc
str replace di gunakan untuk mengganti salah satu kata atau lebih cool nih contoh nya

PHP Code:
<?php
//teks yang akan kita ganti
$teks "dokgabriel adalah orang paling jelek sedunia!";
 
//mengganti kata
$batim str_replace("jelek""ganteng"$teks);
 
echo 
$batim;
?>
nah nanti result yang keluar adalah
Quote:dokgabriel adalah orang paling ganteng sedunia!
semoga trit ini bisa membantu muaha

Spoiler: BB17++
[Image: tumblr_mmgcznJunF1spbtxxo1_1280.gif]
09-08-2015 04:05 AM RE: fungsi str_replace
#2


rudicha Away
FNS MEMBER
FNS Member
**

Posts: 193
Joined: Sep 2015

Reputation:

FCoin: 10.72ƒc
klo ane lbh suka ama preg_match atau preg_replace
tp klo pake str_replace ane biasanya di array biar bnyk gitu yg keganti sekaligus hahaha

rudicha, proud to be a member of ForNesia Family since Sep 2015.
09-14-2015 07:30 PM RE: fungsi str_replace
#3


4dri4n_zerocool Away
HunteR
HunteR
*

Posts: 40
Joined: Jun 2014

Reputation:

FCoin: 2.09ƒc
sob lu ada modul Php buat pemula?

4dri4n_zerocool, follow @brunoasteroid dan selalu post yang berkualitas ajah!!!
10-06-2015 05:22 PM RE: fungsi str_replace
#4


wilr00t Away
Baru Belajar
Registered
*

Posts: 3
Joined: Aug 2015

Reputation:

FCoin: 1.00ƒc
Ane masih binggung gan :3 ,
$batim = str_replace("jelek", "ganteng", $teks);
Jadi kata "jelek" itu yang ada di konten ? , sedangkan kata "ganteng" itu yang mau di replace?
10-08-2015 11:54 AM RE: fungsi str_replace
#5


togex Away
Unbanned -Post
FNS Member
**

Posts: 115
Joined: Mar 2014

Reputation:

FCoin: 5.80ƒc
up ... kalau di warnain gitu bisa ya ,

togex, proud to be a member of ForNesia Family since Mar 2014.
10-14-2015 01:13 AM RE: fungsi str_replace
#6


dokgabriel Away
Programer Tamfan
FNS Member
**

Posts: 163
Joined: Jul 2014

Reputation:

FCoin: 11.40ƒc
(10-08-2015 11:54 AM)togex Wrote:  up ... kalau di warnain gitu bisa ya ,

ciyee yang OOT -_- ..

Spoiler: BB17++
[Image: tumblr_mmgcznJunF1spbtxxo1_1280.gif]
10-14-2015 12:05 PM RE: fungsi str_replace
#7


togex Away
Unbanned -Post
FNS Member
**

Posts: 115
Joined: Mar 2014

Reputation:

FCoin: 5.80ƒc
(10-14-2015 01:13 AM)dokgabriel Wrote:  
(10-08-2015 11:54 AM)togex Wrote:  up ... kalau di warnain gitu bisa ya ,

ciyee yang OOT -_- ..

OOt beneran mbah mazter gab bri el ... h0h0h0

togex, proud to be a member of ForNesia Family since Mar 2014.
06-11-2016 03:08 PM RE: fungsi str_replace
#8


phantom_vhite Away
HunteR
HunteR
*

Posts: 68
Joined: Jul 2014

Reputation:

FCoin: 4.43ƒc
hmm, berarti kalo di textnya itu ada lebih dari 1 kata yang mau diganti, semuanya keganti ya ?

phantom_vhite, proud to be a member of ForNesia Family since Jul 2014.




Search thread:


[-]
Advertisement