Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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ʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

ÇóÖú¸ßÊÖ°ïÎÒ°ÑһС¶ÎPHP´úÂëת»»³ÉASPµÄ

<?php
if($_SERVER['HTTP_REFERER']!=''){
  @header("Content-type:image/jpeg");
  echo file_get_contents("xlight.jpg");
}
else{
  @header("location:ht ......

php ¶ÁÈ¡excelʱ¡£±àÂëת»»ÎÊÌâ

Çë½Ìexcel µÄ±àÂëÎÊÌâ
excelÖдæÔÚ Î÷°àÑÀÓÖÐÎÄ£¬Ó¢Ó¶íÓï °¢À­²®ÓµÈ¶àÖÖÓïÑÔ php ¶Áȡʱ»ù±¾Õý³£ÏÔʾ£¬¾ÍÊÇÎ÷°àÑÀÓ·¨ÓïµÄ Groupe électrogène marins ÕâÖÖµ¥´ÊµÄºìÉ«×Ö·û»á³öÏÖÂÒÂë¡£±àÂëÕ ......

phpÓÎÏ·¿ª·¢

ÇëÎÊһϸ÷λ´óϺ£¬ÎÒÓÃphp×ö¸öÍøÒ³ÓÎÏ·£¬µ±È»ÊÇ×îÀ¬»øµÄÄÇÖÖhtmlµÄ£¬
ÏÖÔÚÎÒÏë°ÑËùÓÐÍæ¼ÒºÍ¹ÖÎnpcµÄÊý¾Ý´¢´æ£¬
µ±È»£¬Êý¾Ý¿âÖе±È»ÓУ¬µ«ÊÇÎÒÓÖ²»Ïë¹ý¶àµÄÈ¥²éѯÊý¾Ý¿â£¬
±ÈÈçÕ½¶·ÏµÍ³£¬¿Ï¶¨ÒªÏȳõʼ»¯Ë«·½Êý ......

PHPÔıø

PHPÔıø,°ÑÄãÃÇPHPµÄ¿ªÔ´ÏîÄ¿·¢ÉÏÀ´¿´¿´,ÒÔ¹©ÔªÊ×¼ìÔÄ
¹úÇì ÖÐÇï¿ìÀÖ

Â¥Ö÷£¬¿ªÔ´ÏîÄ¿²¿´ú±íÃâ·ÑÏîÄ¿

¿ÉÒÔ×Ô¼ºÕÒÂð£¬ÍøÉ϶àµÄÊÇ

Ïë·¨²»´í

¹ÛÀñ̨Χ¹Û¡£

Χ¹Û

½¨ÒéÄã²Î¿¼°×¶¾

Ê׳¤ºÃ£¡

Èö·Ö° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ