$result is a variable which is passed in quotes for the function. Try removing the single quotes and see what happens.