aa - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of aa.php
- <?php
- getbold(0,"bbbn aaaabbbsssss","bbb");
- function asd($q,$a,$word)
- {
- for($k=$q-1; $k < strlen($a); $k++)
- {
- echo $a[$k];
- }
- }
- function ddd($q,$a,$word)
- {
- for($k=0; $k < strlen($word); $k++)
- {
- echo "<b>".$a[$k]."</b>";
- }
- for($k=strlen($word); $k < strlen($a); $k++)
- {
- echo "<b>".$a[$k]."</b>";
- }
- }
- function getbold($q,$a,$word)
- {
- $a = strtr( $a, 'ЙЦУКЕНГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮЁ', 'йцукенгшщзхъфывапролджэячсмитьбюё' );
- if(stripos($a,$word,0)==0)
- {
- echo ddd($q,$a,$word);
- }
- if(stripos($a,$word,$q) == FALSE)
- {
- echo $a;
- }
- if($q < stripos($a,$word,$q))
- {
- for($q=0; $q < stripos($a,$word,$q); $q++)
- {
- for($i = stripos($a,$word,$q); $i < strlen($word)+stripos($a,$word,$q); $i++)
- {
- echo "<b>".$a[$i]."</b>";
- }
- }
- }
- if(($q > stripos($a,$word,$q)) AND ($q < strlen($a)))
- {
- asd($q,$a,$word);
- }
- }
- ?>
File Description
- aa
- PHP Code
- 24 Dec-2020
- 975 Bytes
You can Share it:
Latest PHP Pastes