PHP·Ö¸îtextareaת»ØµÄÊý¾Ý
¼ÙÈçÒ»¸ötextareaÖÐÓÐN¶àÐеÄÊý¾Ý,Òª½«ËüתΪPHPµÄһάÊý×é,
<form id="textarea_test" action="textarea.php" method="post">
<textarea cols="50" rows="5" name="aa" id="abc" >
<?php
$str = $_POST['aa'];
//var_dump($str);
//$str = "chenjinle le";
$array = explode("\n", trim($str));
var_dump($array);
?>
Ïà¹ØÎĵµ£º
PHP File Îļþ¸ñʽ
³£¹æ
¶ÔÓÚÖ»°üº¬ÓÐ PHP ´úÂëµÄÎļþ£¬½áÊø±êÖ¾£¨"?>"£©ÊDz»ÔÊÐí´æÔڵģ¬PHP×ÔÉí²»ÐèÒª£¨"?>"£©, ÕâÑù×ö, ¿ÉÒÔ·ÀÖ¹ËüµÄĩβµÄ±»ÒâÍâµØ×¢ÈëÏàÓ¦¡£
ÖØÒª£º ÓÉ __HALT_COMPILER() ÔÊÐíµÄÈÎÒâµÄ¶þ½øÖÆ´úÂëµÄÄÚÈݱ» Zend Framework ÖÐµÄ PHP Îļþ»òÓÉËüÃDzúÉúµÄÎļþ½ûÖ¹¡£ Õâ¸ö¹¦ÄܵÄʹÓÃÖ»¶ÔһЩ ......
ÔÚIIS»ù´¡ÉϽ¨Á¢PHP»·¾³×Ü»á³öÏÖÕâÑù»òÄÇÑùµÄÎÊÌ⣬ºÜ¶àÎÊÌâ¶¼±È½ÏÄѽâ¾ö£¬±ÊÕß×î½üÔÚ½¨Á¢IISÏÂPHP»·¾³Ê±¾ÍÓöµ½Á˳öÏÖ·ÃÎʳö´íµÄÎÊÌ⣬ËùÓÐphpÒ³ÃæÎļþÎÞ·¨Õý³£ÏÔʾ³öÀ´£¬¶øASP»¹ÓÐHTML¾²Ì¬Ò³ÃæÄܹ»Ë³Àû·ÃÎÊ¡£ÏÂÃæ¾ÍÇë¸÷λIT168µÄ¶ÁÕßËæÎÒÒ»Æð´ÓȨÏÞÈëÊÖ½â¾öIIS+PHP»·¾³¹ÊÕÏ¡£
Ò»¡¢¹ÊÕÏÏÖÏó£º
±ÊÕß´î½ ......
PHP5ÖÐÔöÇ¿ÁËXML
µÄ
Ö§³Ö£¬Ê¹ÓÃDOM
À©Õ¹ÁËXML²Ù×÷µÄÄÜÄÍ¡£ÕâЩº¯Êý
×÷Ϊ PHP5 ºËÐĵÄÒ»²¿·Ö£¬ÎÞÐè±»°²×°
¼´¿ÉʹÓá£
ÏÂÃæµÄÀý×Ó¼òµ¥µÄÑÝʾÁËDOM¶ÔXMLµÄ²Ù
×÷£¬Ïêϸ½âÊÍÇë¿´´úÂë
ÖеÄ×¢ÊÍ
<?
/************************************************
** & ......
1¡¢Ò»°ãÒ³ÃæÍ¨¹ýGET½ÓÊյIJÎÊý¶¼ÊÇINTÐÍ£¨ÕûÐÍ£©¾Ó¶à£¬µ«ÊÇÒª·À·¶Ò»Ð©²»¹æ·¶µÄÊäÈ룬½ÓÊÕʱÓÃÕûÐͺ¯Êýת»»Ò»ÏÂ
$id=intval($_GET["id"]);
2¡¢ÓÐÉÏ´«¹¦ÄÜʱ£¬Ò»¶¨Òª¼ì²éÎļþÀàÐÍ¡£²»ÄÜÈÎÒâÓɷÿÍÉÏÔØËùÓÐÎļþ¡££¨ÌرðҪעÒâһЩHTML±à¼Æ÷µÄ©¶´£©
3 ......
ÀàÎļþwordsplit.class.php£º
<?php
/********************************************************************
* DirCMSÖÐÎÄ·Ö´ÊÀà beta 1.0
* ---------------------------
* begin : 2010-5-11 beta 1.0
* update : 2 ......