Jump to content

how can i compaire a string in LIKE analogy of MySQL


snk

Recommended Posts

<?php

    $a = "this is exactly one string";
    if (preg_match('/exactly/',$a)) {
        echo "found";
    } else {
        echo "not found";

    }  

?>

if exactly is value? how do i use it? i try if (preg_match('/$some_value/',$a)) and nothing happens.

thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.