Skip to content
PHP Logo

What is the significance of the arg_separator.input and arg_separator.output settings in PHP?

The arg_separator.input and arg_separator.output settings in PHP are used to specify the characters used to separate input and output arguments in query strings. By default, these settings are set to "&" for input and ";" for output. If your application requires a different separator character, you can change these settings accordingly.

php
// Set the arg_separator.input and arg_separator.output settings to customize the separator characters
ini_set('arg_separator.input', '&');
ini_set('arg_separator.output', ';');