There is such code:

preg_match("#*;$dep;*#", $temp[3]); 

$ dep is a normal int number, $ temp [3] is a string consisting of; 13; 1; 2; 6; 88;

The interpreter produces a strange varning:

Warning: preg_match (): Compilation failed: nothing to repeat at offset 1

Help me to understand

    1 answer 1

    The quantifier * requires that something stand in front of it, and that says, they say, "nothing to repeat at offset 1".