Are there any constants for "GET", "POST", etc. defined inside of the native php language, I have already tried:
HTTP_METH_GET
etc.
but without success
__FUNCTION__ returns only the name of the function. while as __METHOD__ returns the name of the class alongwith the name of the function.
__LINE__ The current line number of the file. __FILE__ The full path and filename of the file with symlinks resolved. If used inside an include, the name of the included file is returned.
You use PHP_EOL when you want a new line, and you want to be cross-platform. This could be when you are writing files to the filesystem (logs, exports, other). You could use it if you want your generated HTML to be readable.
Create a PHP Constant To create a constant, use the define() function.
It has been a while since this was asked, but like mentioned in the comments there are no native constant predefined for GET HTTP Method GET.
This question should be set to 'answered'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With