Use explode in php to check whether a character exists. This method can also be used to determine whether the separator is available. For example, copy the code as follows :? Phpif ($ _ MODULE [tg1_tjly]) {$ tg1_tjlyexplode (|, $ _ MODULE [tg1_tjly]); if (coun this method can also be used to determine whether the separator is available. For example:
The code is as follows:
If ($ _ MODULE [tg1_tjly]) {
$ Tg1_tjly = explode ("|", $ _ MODULE [tg1_tjly]);
If (count ($ tg1_tjly)> 1) {// here, when the statistical array is greater than 1, it indicates that it contains one or more interval symbols "| ".
$ Tg1_tjly_tit = $ tg1_tjly [0];
$ Tg1_tjly_con = $ tg1_tjly [1];
} Else {
$ Tg1_tjly_tit = 'reason for recommendation ';
$ Tg1_tjly_con =$ _ MODULE [tg1_tjly];
}
} Else {
$ Tg1_tjly_tit = 'Enter the Recommendation reason title ';
$ Tg1_tjly_con = 'Enter the content of the Recommendation reason. enter the content of the Recommendation reason. enter the content of the Recommendation reason. ';
}
?>
Bytes. For example, the code is as follows :? Php if ($ _ MODULE [tg1_tjly]) {$ tg1_tjly = explode ("|", $ _ MODULE [tg1_tjly]); if (coun...