• Resolved George

    (@georgegecewicz)


    Hey all,

    I’m trying to run this code:

    <h1><?php
       $headidslug = bloginfo('name');
       $headidslug = str_replace(" ", "", $headidslug);
       echo $headidslug;
    ?></h1>

    So that “Hey It’s George” gets echoed as “heyitsgeorge”, for example.

    It’s not working though, any ideas or solutions? Please forgive the PHP noobness.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘str_replace on bloginfo('name'’ is closed to new replies.