Javascript passing variable to php

is there any way to pass a variable to out put in php?