If you "simply create functions with granularity similar to PHP's features" you're basically re-implementing PHP from first principles. The advantage of PHP over C is that you don't have to do that. A lot of PHP is just wrappers around C anyway.
And yes the fact that it's easy to serve a website from PHP is a big part of its value, all else aside.