Autor | Zpráva | ||
---|---|---|---|
Hiro Profil * |
#1 · Zasláno: 7. 8. 2008, 09:50:38
Sia, chcel by som dat ze ked textarea odosle nejaky text a v tom texte bude slovo ***** tak sa to prepise za Hov**
|
||
Taps Profil |
#2 · Zasláno: 7. 8. 2008, 10:07:57
str_replace viz php
|
||
Hiro Profil * |
#3 · Zasláno: 7. 8. 2008, 10:30:11
Sia, ked si myslel toto:
<?php // Provides: <body text='black'> $bodytag = str_replace("%body%", "black", "<body text='%body%'>"); // Provides: Hll Wrld f PHP $vowels = array("a", "e", "i", "o", "u", "A", "E", "I", "O", "U"); $onlyconsonants = str_replace($vowels, "", "Hello World of PHP"); // Provides: You should eat pizza, beer, and ice cream every day $phrase = "You should eat fruits, vegetables, and fiber every day."; $healthy = array("fruits", "vegetables", "fiber"); $yummy = array("pizza", "beer", "ice cream"); $newphrase = str_replace($healthy, $yummy, $phrase); // Use of the count parameter is available as of PHP 5.0.0 $str = str_replace("ll", "", "good golly miss molly!", $count); echo $count; // 2 // Order of replacement $str = "Line 1\nLine 2\rLine 3\r\nLine 4\n"; $order = array("\r\n", "\n", "\r"); $replace = '<br />'; // Processes \r\n's first so they aren't converted twice. $newstr = str_replace($order, $replace, $str); // Outputs: apearpearle pear $letters = array('a', 'p'); $fruit = array('apple', 'pear'); $text = 'a p'; $output = str_replace($letters, $fruit, $text); echo $output; ?> tak s toho rozumiem toto: <?php ?> |
||
tiso Profil |
#4 · Zasláno: 7. 8. 2008, 10:55:35
Hiro - začni tým, že nám ukážeš ako spracovávaš odoslaný formulár.
|
||
Hiro Profil * |
#5 · Zasláno: 7. 8. 2008, 10:59:00
Sia, je to fuzed_shoutbox na php-fusion.
|
||
Časová prodleva: 16 let
|
0