I have to generate a string using a given word, let's say "wheel" for full-text boolean mode search. But the second appearance of that word is replace after "<" sign when I'm trying to set the priority:
$word = 'wheel';
$x = '+(>' . $word . ' <' . $word . '*)';
echo $x;
The desired result should look like this:
+(>wheel <wheel*)
But instead the result is looking like this:
+(>wheel
But when I'm using var_dump
I get the right length which is 17
I'm using PHP 5.6.40
Any idea why?