一个很简单的PHP编程遇到的小问题

来源:百度知道 编辑:UC知道 时间:2024/05/25 07:57:30
我编的是一个很简单的用户输入字符,然后点击确定就会在下面输出字符反序,就是倒着输出用户输入的字符,以下是我的程序

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="name.php">
请输入你的名字:
<label>
<input type="text" name="name" id="textfield" />
</label>
     
<label>
<inp

mb_internal_encoding("UTF-8");
然后用
mb_split()这个函数来分割字符串.

<?php
$a=$_POST['name'];
$arr=explode($a,'');
for ($i=count($arr);$i>=0;$i--){
echo $arr[$i];
}
?>

判断是不是英文字符,不是就两个字符交换

SQL数据库的问题吧,你选的是字符串吗》??