亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        php給每個(gè)段落添加空格的方法

        字號(hào):


            這篇文章主要介紹了php給每個(gè)段落添加空格的方法,涉及PHP_EOL變量及數(shù)組與字符串的操作技巧,具有一定參考借鑒價(jià)值,需要的朋友可以參考下
            本文實(shí)例講述了php給每個(gè)段落添加空格的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
            <?php
            //Prepends whitespace to each line of a string
            function white_space( $string, $whitespace )
            {
            //Create an array from the string, each key having one line
            $string = explode( PHP_EOL, $string );
            //Loop through the array and prepend the whitespace
            foreach( $string as $line => $text )
            {
            $string[ $line ] = $whitespace . $text;
            }
            //Return the string
            return( implode( PHP_EOL, $string ) );
            }
            ?>
            希望本文所述對(duì)大家的php程序設(shè)計(jì)有所幫助。