Php source code whitespace


I am familiar with the concept of minification in Javascript and how whitespaces contribute to JS file sizes, but does that concept not apply to PHP scripts?

does whitespace make php scripts file sizes larger? can we minify php scripts? or is there no point in doing so because whitespaces in source codes in php does not affect anything at all?

Best Solution

There's no point in doing so because users don't download your PHP file. There's no need to minify server-side scripts.