Support

Account

Forum Replies Created

  • I think it’ll help you
    try it

    Use str_replace() with fewer elements in replace than find:
    I am just giving an example to you with word of hello world

    <?php
    $find = array(“Hello”,”world”);
    $replace = array(“B”);
    $arr = array(“Hello”,”world”,”!”);
    print_r(str_replace($find,$replace,$arr));
    ?>

Viewing 1 post (of 1 total)