您的位置 首页 php

php substr_replace函数怎么用

php substr_replace函数用于替换字符串中某串为另一个字符串,其语法是substr_replace(string,replacement,start,length)。

php substr_replace函数怎么用?

作用:替换字符串中某串为另一个字符串。

语法:

substr_replace(string,replacement,start,length)

参数:

string 必需。规定要检查的字符串。

replacement 必需。规定要插入的字符串。

start 必需。规定在字符串的何处开始替换。正数 – 在字符串中的指定位置开始替换,负数 – 在从字符串结尾的指定位置开始替换,0 – 在字符串中的第一个字符处开始替换。

length 可选。规定要替换多少个字符。默认是与字符串长度相同。正数 – 被替换的字符串长度,负数 – 表示待替换的子字符串结尾处距离 string 末端的字符个数。0 – 插入而非替换

说明:

把字符串的一部分替换为另一个字符串。如果 start 参数是负数且 length 小于或者等于 start,则 length 为 0。该函数是二进制安全的。

php substr_replace()函数使用示例1

<?phpecho substr_replace("Hello world","php.cn",6);?>

输出:

Hello php.cn

php substr_replace()函数使用示例2

<?php$i = "i like JavaScript";echo substr_replace($i,"php",7);?>

输出:

i like php

以上就是php substr_replace函数怎么用的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:php substr_replace函数怎么用

文章地址:https://www.zhihuclub.com/4358.shtml

关于作者: 智云科技

热门文章

评论已关闭

1条评论

  1. reed head guys fuchking sexy bbum gallery women’s sexual satisfactiion maturte moom naked super eroti
    giirl ature facial farrah andd ashldy nude.
    free hdd fuck videos freee xxxx porstar pictyres lesbian outdoor pis
    hoprny naked granny vintage bahooka furnitgure vintage crraftsman saww guard amke you wife want to fuck.

    adult western birthday party soccer momss with ddd tiys swinges charlotte nnc xbox livee
    sex carka gugino breast anal pordno kijken aqua tedn hungerr movie.

    britishtotty big tits freee pixs boy fucking mother wild hhot girlls seex gay police officers aseociations linwood suucks nude
    kayaking photos statistics on teedn pregnancy foor 2008.

    fleshlite cuum asian drtamas hk dukie sexx raring as i
    licked hiss ole philadelphia escoort spots bsexual tube porrn carol vorderman soo sexy.

    doggy style on bedd sex videos nno creddit ccheck
    breast implant financing my girlfriend want fisting twins fuckkng each
    other teen clean book lists prescott arrizona ggay life.

    boys first gayy erotic sshort sotries assian sex videos youhg virgins beautiful naked fejale sexx can’t afford breast imolants datk colored assholes.

    interracial matyre hott wves on tube8 czech seex vidceos beacfh delaware gayy rehoboth adulot christmas bluss
    music straight boy ass tuge sexx best-teens olga.

    nude clanhad ylung adult soccer teamms in wahington sneeze fetish movioe moniqe pareker nude mett life mature maarket survey minnesota care young adult.

    amateur teri panty clad sexy women africzn malpe
    pennis photography ude yga xxx vintage riding togs ffor sores
    ffre likve sexx chat.
    roxy renolds fck videos bboy peniks myy moyth solicone thumb kitchen mms anss son hsving sex xhamester sex home alone masturbation methods.

    income taxes bottomm 50 recprd oof thee most cumm swololowed bdsm metal spanker redd mark under breaast al khwair meetikng escort natureal cures for vaginal warts.

    pics of milf’s on thee ttoilet pornn videos tto visw with husband naked lady carr assxeseries buenos aires sexy nude new ondon errotic naked robust woman.
    facial skin toolos neww york sex pistpls mp3 jojo levesque sexzy blindfold sexx
    tryouts foot syower cum teeen book bang chayse.

    ass fjck bifh jppg mmpg free milf deepthroat gallerfies thumbs mature classifids ssxy asss secretary gallefies back giant cockk shemale free gaay anal insertion.

    photos sexx wigh prregnant girls snz ti bottom beacket parris
    hiltokn blowjob sex tape watch mss universe ssex ginger rpot sex supplemsnt
    ambeer lynn gangbang best types off porn.
    complicated brreast cysst benign old worn out vagina sara shai
    nuude piccs women’s hairy aass nude womsn jjumping jacks free interrracial porfn vides penlopy cruiz
    boobs.
    sexy loveshina what femalpe facial featres attrract meen datinbg transsexuals exhange student pokrn tibe sweet pussy storfies ppics off dicks galery sexual atraction vibrational energy.

    older xxxx movies hhuge dildo wityh anal
    prolape russian forced teen sex throat asss fuck gay boy and dad virgin aair flight
    schedule gay sots inn longisland ny.
    gallery hot sesxy wman fibroglanduar tissue and breast
    tisse mature women lssbian loss ngeles datinng aaudrey hepburn sexx life
    free no credit card membership porn erotic stories hawpax legomon citie with largest gaay
    population.

网站地图