phpÖÐÓÐûÓÐÏòÓÒÈ¡×Ö·û´®µÄº¯Êý
phpÖÐÓÐûÓÐÏòÓÒÈ¡×Ö·û´®µÄº¯Êý£¿ ¾ÍÏñexcelÀïÃæµÄrightÒ»Ñù¡£
ÿÌì»ØÌû¼´¿É»ñµÃ10·Ö¿ÉÓ÷֣¡ substr();ÒýÓà substr(); substrÄÜÏòÓÒÈ¡Âð£¿ËüÊÇÀàËÆÒÔexcelµÄMIDº¯Êý°¡ $str="abcdefg"; $des=substr($str,0,3);//´Ó$strµÄµÚÒ»¸ö×Ö·û¿ªÊ¼,ÏòÓÒÈ¥3¸ö×Ö·û,Ò²¾ÍÊÇ"abc" $des=substr($str,-3,3);//´Ó$strµÄµ¹ÊýµÚÈý¸ö×Ö·û¿ªÊ¼,ÏòÓÒÈ¥3¸ö×Ö·û,Ò²¾ÍÊÇ"efg" substr (PHP 3, PHP 4, PHP 5) substr -- Return part of a string Description string substr ( string string, int start [, int length] ) substr() returns the portion of string specified by the start and length parameters. If start is non-negative, the returned string will start at the start'th position in string, counting from zero. For instance, in the string 'abcdef', the character at position 0 is 'a', the character at position 2 is 'c', and so forth. Àý×Ó 1. Basic substr() usage <?php echo substr('abcdef', 1); // bcdef echo substr('abcdef', 1, 3); // bcd echo substr('abcdef', 0, 4); // abcd echo substr('abcdef', 0, 8); // abcdef echo substr('abcdef', -1, 1); // f // Accessing single characters in a string // can also be achived
Ïà¹ØÎÊ´ð£º
ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel ×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬ ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏ ²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿ ÔËÐÐÁË/ext_skel --extname=Ä ......
<?php if($_SERVER['HTTP_REFERER']!=''){ @header("Content-type:image/jpeg"); echo file_get_contents("xlight.jpg"); } else{ @header("location:ht ......
Çë½Ìexcel µÄ±àÂëÎÊÌâ excelÖдæÔÚ Î÷°àÑÀÓÖÐÎÄ£¬Ó¢Ó¶íÓï °¢À²®ÓµÈ¶àÖÖÓïÑÔ php ¶Áȡʱ»ù±¾Õý³£ÏÔʾ£¬¾ÍÊÇÎ÷°àÑÀÓ·¨ÓïµÄ Groupe électrogène marins ÕâÖÖµ¥´ÊµÄºìÉ«×Ö·û»á³öÏÖÂÒÂë¡£±àÂëÕ ......
ÇëÎÊһϸ÷λ´óϺ£¬ÎÒÓÃphp×ö¸öÍøÒ³ÓÎÏ·£¬µ±È»ÊÇ×îÀ¬»øµÄÄÇÖÖhtmlµÄ£¬ ÏÖÔÚÎÒÏë°ÑËùÓÐÍæ¼ÒºÍ¹ÖÎnpcµÄÊý¾Ý´¢´æ£¬ µ±È»£¬Êý¾Ý¿âÖе±È»ÓУ¬µ«ÊÇÎÒÓÖ²»Ïë¹ý¶àµÄÈ¥²éѯÊý¾Ý¿â£¬ ±ÈÈçÕ½¶·ÏµÍ³£¬¿Ï¶¨ÒªÏȳõʼ»¯Ë«·½Êý ......
PHPÔıø,°ÑÄãÃÇPHPµÄ¿ªÔ´ÏîÄ¿·¢ÉÏÀ´¿´¿´,ÒÔ¹©ÔªÊ×¼ìÔÄ ¹úÇì ÖÐÇï¿ìÀÖ Â¥Ö÷£¬¿ªÔ´ÏîÄ¿²¿´ú±íÃâ·ÑÏîÄ¿ ¿ÉÒÔ×Ô¼ºÕÒÂð£¬ÍøÉ϶àµÄÊÇ Ïë·¨²»´í ¹ÛÀñ̨Χ¹Û¡£ Χ¹Û ½¨ÒéÄã²Î¿¼°×¶¾ Ê׳¤ºÃ£¡ Èö·Ö° ......