phpÖвÎÊý´øĬÈÏÖµµÄ×Ô¶¨Òå·½·¨
<?php
//ʹÓÃfunction¹Ø¼ü×Ö¶¨Òå·½·¨
function num($value,$value2 = 'ÄúºÃ£¡'){
echo $value.$value2;
}
//µÚÒ»´Îµ÷ÓÃ
num("ÕÅÈý");
//µÚ¶þ´Îµ÷ÓÃ
//¿ÉÒÔ¿´³ö£¬¸Ã·½·¨¶¨Òåʱ£¬µÚ¶þ¸ö²ÎÊýµÄĬÈÏÖµÊý¾ÝÀàÐÍΪ×Ö·û´®
//µ«Ôڴ˵÷ÓÃʱ£¬¸øÁËÕûÐΣ¬Ò²ÊÇ¿ÉÒԵġ£
num("ÕÅÈý",1);
num("ÕÅÈý","is very butyful");
//µÚÈý´Îµ÷ÓÃ
//ÔÚÕâ´Îµ÷ÓÃÖеڶþ¸ö²ÎÊý´«ÁËÒ»¸öÊý×éÆäÖÐÒ»¸öÔªËصÄÖµ
$arrTest = array(1,2,3,4);
num("ÕÅÈý","$arrTest[2]");
?>
Ïà¹ØÎĵµ£º
<?php
$s = <<<html
<html>
<head>
<title>nested tag test</title>
<mce:script type="text/javascript"><!--
alert('fdsafdasfasd');
// --></mce:script>
</head>
<body>
<div id=0>
<div id=1><img name="im ......
ÏÖÔÚphpÓкܶ࿪·¢¿ò¼Ü£¬±ÈÈçzendµÄzendframe——Ò»¸öЧÂʺܵͣ¬µ«ÍþÁ¦ºÜ´óµÄ¾ÞÈË£¬symfony——Ò»¸öÊÊÓôóÐÍÓ¦ÓÃÈ´Ìå»ýÇáÇɵİïÊÖ£¬cakephp£¬codelgniter£¬thinkphp£¬fleaPHPµÈµÈÓÅÐã×÷Æ·¡£
Ò²ÐíÒòΪÕâ¸öÔÒò£¬phpºÜÄѳÉΪÖ÷Á÷¡£Ñ¡Ôñ¶àÁË·´¶ø²»ÖªµÀÑ¡ÔñÄĸöºÃ¡£²»ÏñjavaÓÐͳһµÄÖ÷Á÷¿ò¼Ü£¬Äã¿ÉÒÔÑ¡Ôñe ......
header("Content-Type:text/html;charset=utf8"); ·Åµ½PHP¿ªÍ·´¦
$link=mysql_connect("localhost","root","110110");//Á´½Ó
mysql_select_db("blog",$link);//Ñ¡ÔñÊý¾Ý¿â
mysql_query("SET character_set_results=gbk", $link);//×Ö·û±àÂë ......
<?php
class main extends spController
{
function index(){
echo "<p align=center><h1>HIS»ù´¡Êý¾Ýά»¤</h1>";
echo "<p align=center><h2>¿ÆÊÒ×Öµä</h2>";
$contentsurl=spUrl("main", "i ......
PHP³ÌÐòºÍMySqlÊý¾ÝÂÒÂëÎÊÌâÔÒò¼°½â¾ö
ÂÒÂëÎÊÌâ¼òµ¥Ëµ¾ÍÊÇÊý¾Ý¿âдÈë¶ÁÈ¡£¬ÍøÒ³Îļþ£¬ÍøÒ³ÏÔʾʱ¼¸¸ö»·½ÚµÄ±àÂë²»Ò»ÖÂÔì³ÉµÄ¡£
ÂÒÂëÎÊÌâ
дÈëʱ£ºÒ³ÃæÌáȡдÈëÊý¾Ý±àÂëºÍдÈëÊý¾Ý¿âʱ±àÂë²»Ò»ÖÂ
¶Áȡʱ£º¶ÁÈ¡ºóËùÓñàÂëÓëÊý¾Ý¿âдÈëʱ²»Ò»ÖÂ
ÏÔʾʱ£º±àÂëÓëÊý¾Ý¿â¶ÁÈ¡ºóµÄÊý¾Ý²»Ò»ÖÂ
ºÜÏÔȻֻÓÐÈýÕ߶¼Í³Ò»²ÅÐУ ......