3 like 0 dislike
2.3k views

Write a PHP script to print the next character of a specific character.

Sample string : a 
Expected Output : b
Sample string : xyz 
Expected Output : yza 

[Exercise] Essay (Open question) - asked in 2016-2 CSIEB0270 - Internet System Design and Practice by (18k points)
ID: 24997 - Available when: 2017-06-15 09:30:00 - Due to: 2017-06-15 12:00:00

reshown by | 2.3k views
0 0
<?php
$mycounter = 1;
$team = array('a', 'b', 'c',  'd', 'e', 'f' ,'g', 'h', 'i','j', 'k', 'l', 'm', 'n', 'o', 'p', 'k', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');
echo $team[3];
//echo $team[3]
?>

23 Answers

0 like 0 dislike
Hidden content!
* ** ** ** * * * * **** ****** **** * **
answered by (-61 points)
0 like 0 dislike
Hidden content!
* * **** * **** *
*
* * *
* * *
* * * * * * * ***** *
* * *
* *
* * * * * * * ** *
* * * * ** ***
*
* * * **** *** * * *
* * * * * * *** ** ***
* * * * * * * *** **** ** ***
* * * *
* * * *** ** * *
* * * ** * * *
* * **** ** * *** * * * * **
* * * **** **** ** *
* * * * * *
* * * * * * *** * * ***
* * * * * *
*
* * * * * * * ****

** * *


***
answered by (30 points)
0 like 0 dislike
Hidden content!
** *** * *** * *
* *
* **
*
* ****** ** * * * * *
* * *
* *
* * * ****
* * * * ** ** * *
* * *
* * * * **** *******
* * * ** * *****
* * * * * * * * * * *** * *****
* * *
* * ** ***** **
* ** * ***
* * * * * * * * * * * * * * *
* * * * * * * ** **
* * * * * *
* * ** * ** * *
* * *

* * * * *****
*
**


** *
answered by (30 points)
0 like 0 dislike
Hidden content!
* * * *** ** *** * * * ** * * *** ** *
answered by (-32 points)
0 like 0 dislike
Hidden content!
* * ** ** ** * * *** **** * * * * *
answered by (-10 points)
0 like 0 dislike
Hidden content!
* * * * *** ** *** * *** * * * * *
answered by (-10 points)
0 like 0 dislike
Hidden content!
final4.html:


* * ** **
* * * * **

<form ** * *** * ** ****** ****** *

Input: <input type=“text” * * * * ****

<input * * ** * *
* * * *


* * * * **
** ** *



 



final4.php:


** * * *
** * ** **



<?php
** *** * * **
* * * *** * * ** *
** ***** ** * **** ***** * *
** * * * * ** * * ** * * * ** ***** ** ** * * **** *
** **** ** * * ** **
* ** * **** ** *** * ** * *
*** ** ** **** *** * *** * ** ****** * ** *** **** * *
* **** *** **** * *** * *

}

echo ** ** * * * ** *

?>
** * *** *** *
** *** *
answered by (30k points)
0 like 0 dislike
Hidden content!
** * **** * ****** ******** * * * * * * *
answered by (-144 points)
0 like 0 dislike
Hidden content!
<?php
* * ** * * * * * *** * ** * ** * * ** * * ** **** * * ***** ** * ** * *** ***

            {
* ** ****** ** **** ** * *** * * **** **** * *** *** * ** * ** * ** * * ** * ***** ** * * *  $_GET['text'];
* * ** ** ** * * * * ** * **** * ** * ** * * * * * * ** ** * * * * *** * ($string);
** **** * ** ** * * * ** **** * ** * * * ** ** * * ** * ***** **** * *** ** * * ** **** * ** ** ** * **** ** ** * * ** * * *** ***
* * *** * ** * **** *** * **** * * * ** * * * *** *** * * * ** ** * ** * * * * * * ($i=0;$i<$len;$i++)
******* ** ** *** * * * ** ** * * ** ** ** ******* **** **** *** * ** * * ***** *
* ***** **** * ***** **** * ** * ** * ** * *** * ** * * ****** * * * ** *** ** * ** ** ***** * * = $string[$i];
**** * ** * *** **** * * * * * ** *** *** ** ** * * ** *** * *** * ******* * ***** ** **** * *** ***** * ** * * * = ++$cha;
*** * * * *** * * ** ** * * ** ** * **** * *** * ** ** * * * **** * ***** * *** * (strlen($next_cha) > 1)   
* * * * *** ** ** * * *** * ** ** * * * **** ** * * * * **** * ***** *** * *** ** ** **** **** * * ** *  
** **** * * *** * *** *** * * * * * * * ** *** ** * ** ** ** * * * * * *** ** **** * * * * * ** ******* * ** * ** * = $next_cha[0];  
** * *** *** * *** * *** ***** ** ** * ***** * * * ** * *** ** *** * *** ** * * * ** * ** * * ***  
*** * * * ** * *** * **** ** ******** ** * * * * ** * * *** * * * * ******** * *** * ** ** * $next_cha."\n";
* ** * ** ****** *** ***** *** * **** * * * ** * ** * *** * * * * * **** * ** **

            }     

        ?>
answered by (-168 points)
0 like 0 dislike
Hidden content!
* * ** ** ** * ** ** ** * * * ** * * **** ** ******
answered by (-14 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:108.162.216.235
©2016-2025

Related questions

1 like 0 dislike
14 answers
[Exercise] Essay (Open question) - asked Jun 15, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 24998 - Available when: 2017-06-15 09:30:00 - Due to: 2017-06-15 12:00:00
| 1.7k views
2 like 0 dislike
11 answers
[Exercise] Essay (Open question) - asked Jun 15, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 24996 - Available when: 2017-06-15 09:30:00 - Due to: 2017-06-15 12:00:00
| 1.6k views
3 like 0 dislike
20 answers
[Exercise] Essay (Open question) - asked Jun 15, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 24995 - Available when: 2017-06-15 09:30:00 - Due to: 2017-06-15 12:00:00
| 2k views
3 like 0 dislike
23 answers
[Exercise] Essay (Open question) - asked Jun 15, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 24994 - Available when: 2017-06-15 09:30:00 - Due to: 2017-06-15 12:00:00
| 2.3k views
3 like 0 dislike
20 answers
[Exercise] Essay (Open question) - asked May 18, 2017 in 2016-2 CSIEB0270 - Internet System Design and Practice by Shun-Po (18k points)
ID: 24647 - Available when: 2017-05-18 09:30:00 - Due to: 2017-05-18 12:00:00
| 2.3k views
12,783 questions
183,442 answers
172,219 comments
4,824 users