<?php $aspell_link = aspell_new("english"); if (aspell_check($aspell_link, "testt")) { echo "This is a valid spelling"; } else { echo "Sorry, wrong spelling"; }?>