TP5 post receiving array reports error variable type error: array
The error of the array is:
variable type error:array
Reason: Post submission data cannot submit arrays and objects.
Solution:
Add /a after the data when receiving and /a when transferring objects
for example:
Request::instance()->post('参数/a');
Read More:
- [PHP] Array to string conversion error when sending data in post
- Tp6 Cannot enable error [How to Solve]
- TP5 fuzzy Chinese characters error [How to Solve]
- [Solved] tp6.0 open_basedir Error: Warning: require(): open_basedir restriction in effect.
- [Solved] PHP post Datas json_decode Error: 4 JSON_ERROR_SYNTAX
- [Solved] Type error: Argument 1 passed to Monolog\Utils::getClass() must be an instance of Monolog\object
- PHP use __Sleep() and __wakeup() method serializes the object
- ThinkPHP interface cross domain request error [Solved]
- [Solved] has been blocked by CORS policy: Response to preflight request doesn‘t pass access control check: No
- [Solved] PHP Fatal error: Uncaught Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes
- [Solved] Request exceeded the limit of 10 internal redirects due to possible configuration error
- Using $this when not in object context in (How to Fix)
- How to Solve PHP Fatal error: Namespace declaration statement has to be the very first statement
- php_network_getaddresses: getaddrinfo failed (How to Fix)
- PHP Error Object of class mysqli could not be converted to string in
- [Solved] Laravel Upload Files Verificate Error: The file failed to upload.
- [Solved] PHPMailer Error: SMTP ERROR: Failed to connect to server: (0)
- [PHP]json_encode Chinese JSON_UNESCAPED_UNICODE returns null in php5.3
- PHP: How to parse MHT file into HTML
- [Solved] PHPMailer Failed to Send Email: SMTP Error: Could not connect to SMTP host.