Does it return to PHP in form of integer or not? If not the rest of the code will not work properly.