Skip to:
Content
Pages
Categories
Search
Top
Bottom

Using pregmatch with $content


  • impartialintel
    Participant

    @impartialintel

    Hi i am trying to run this code snippet globaly:

    if ( ! preg_match( ‘/https?:\/\/\S+/i’, $content ) )…

    but it says that $content is not a string.

    How can i turn it into a string.

    Thanks in Advance.
    Enes

Viewing 1 replies (of 1 total)

  • emaralive
    Participant

    @emaralive

    Hi @impartialintel

    This question should be asked in the previous topic you created -> Allowing only $content with urls to be posted(Error.

    The reason is to provide continuity and context to your original request since this topic is directly related. As it stands, this topic is without context and someone would have to connect the dots between this topic and your previous indicated topic in order to understand with specificity and provide some reasonable response.

    So, if I can get you to post what you posted above in the indicated topic, we can continue the conversation and get you closer to your desired goal.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar