Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

202
Views
Is str_replace done when there is an Array in the Array?
$blocked_list   = array(';', '/*','---','*','\*','\'','select','union','join','where','insert','like','drop','and','have','alter','0x','"','\'','location','LOCATİON','LOCATION','refresh','script','frame','iframe','İFRAME','IFRAME','\\n');

$check_array = [
                [
                    'key' => 'select',
                    'lang' => [
                        'en' => 'Select',
                        'tr' => 'Sec'
                    ]
                ]
            ];
$new_tk     = str_ireplace($blocked_list, '', $check_array);

It gives me the following error as a result.

"Warning: Array to string conversion in /var/www/...." How can I str_replace the array inside the array as in the $array_check variable?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!