[Solved] compile it by suing the root

There is a problem in this line: double v[k] = log(log(sqrt(e[k]+1)+1)+1); in the first iteration k == 0 so you are trying to declare a zero sized array. I dont understand the code enough to tell you how to fix it, but a zero sized array is definitely not what you want in that place. … Read more

[Solved] i have stored array in database as a string how can retrieve that array?

use JSON_ENCODE first before saving the array to DB ,then use JSON_DECODE if you want to get again the contents $arr = array( “item_number1” => “1”, “payment_date” => “04:21:34 Dec 06, 2014 PST”, “payment_status” => “Completed”, “first_name” => “sdfsd”, “last_name” => “parsdfsdandekar”, “quantity1” => “1” ); echo json_encode($arr); Result after JSON_ENCODE (Array to JSON String): … Read more

[Solved] Combine PHP array as something [duplicate]

If your first two arrays has the same length, you can use a loop to get the array you want: <?PHP $arr1= array(“A”,”B”,”C”); $arr2= array(“1″,”2″,”3″); $arr3=[]; for($i = 0; $i < count($arr1); $i++) array_push($arr3, $arr1[$i], $arr2[$i]); ?> It will return: $arr3= array(“A”,”1″,”B”,”2″,”C”,”3″); 1 solved Combine PHP array as something [duplicate]

[Solved] What is the most efficient way to convert JSON with multiple objects to array in JavaScript [closed]

Simple solution with two map() operations: const data = [{ “week”: 1, “lost”: 10, “recovery_timespan”: [{ “week”: 2, “count”: 1 }, { “week”: 3, “count”: 0 }] }, { “week”: 2, “lost”: 7, “recovery_timespan”: [{ “week”: 3, “count”: 1 }, { “week”: 4, “count”: 3 }] }, { “week”: 3, “lost”: 8, “recovery_timespan”: [{ “week”: … Read more