hi guys,
Was wondering if someone could pls help me out here...I need to compare a string of characters like this 'digital principles and applications' to a word like 'digital'
Now, if the word 'digital' exists in the string, which it does, then the condition should be true, otherwise it should be false. The string will be stored in a variable like this; [the string could be anything]
$text= digital principles and applications;
$word= digital;
I tried using the "substr_count" function, but that seems to work only with arrays and there are no arrays here..
TIA..



