Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
//$popular_search_queries = 'аа бб,584875'.PHP_EOL.'ааа ббб,565040'.PHP_EOL.'аааа бббб,437770';
$popular_search_queries = 'чехол бб,584875'.PHP_EOL.'ааа костюм,565040'.PHP_EOL.'аааа бархат,437770';
$arr = array_map('str_getcsv', preg_split('/\R+/u', $popular_search_queries));
var_export($arr);