> ## Content Index
> Fetch the complete content index at: https://en.blog.themarfa.name/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to turn a list of data into a PHP or JavaScript array
- URL: https://en.blog.themarfa.name/how-to-turn-a-list-of-data-into-a-php-or-javascript-array/
- Published: 2023-02-06T05:48:59.000Z
- Updated: 2023-02-06T05:48:59.000Z
- Description: ArrayCat is a service for converting data into an array. For example, you can convert a CSV file to PHP, JavaScript, or another array. Even in SQL Insert.
- Author: Konstantin Dokuchaev
- Tags: web, ArrayCat

If you are a developer or tester, definitely sometimes you have to convert various lists into arrays for PHP, JavaScript. Doing it manually is not very fun, so you can use special online services.

**[ArrayCat](https://arraycat.com/)** is a service for converting data into an array. For example, you can convert a CSV file to PHP, JavaScript, or another array. Even in SQL Insert.

To do this, in the upper input field, you need to insert your list or upload a file. Optionally, you can select the separator type.

![](https://blog.themarfa.name/content/images/2023/02/image-4.png)

And in the lower part, select the type of array and, if necessary, the text transformation parameter. For example, it supports sorting, removing duplicates and changing lowercase-uppercase and much more.

When everything is ready, it remains to press the **Convert** button and get the result.

![](https://blog.themarfa.name/content/images/2023/02/image-5.png)

[Try ArrayCat](https://arraycat.com/)