• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Convert regular text to array using notepad++

phparraysnotepad++


PHP Snippet 1:

$array = file('/path/to/file.txt', FILE_IGNORE_NEW_LINES);

PHP Snippet 2:

echo '<pre>$array = ' . var_export($array, true) . '</pre>';

Related Snippets

Xdebug in Laravel is not working with VSCode

How to get unique slug to same post-title for other time too?

Xdebug can't connect back to Docker host

Respond with status code 401 on authentication failure using Laravel and Passport?

PHP array_filter with arguments

Add custom text under order details on WooCommerce My account view order pages

Magento Installation SQLSTATE[HY000] [2002] No such file or directory error

Sum array values of a column within each column of an array with 3 levels

PHP array, move keys and values to new array, but mix it up

phpunit - mockbuilder - set mock object internal property

Adding one microsecond to Datetime object in PHP

how to see if database exists with PDO [duplicate]

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

phpseclib 2.0 can not use Composer to create autoload

How do I call a php file with axios?

About Contact Privacy policy Terms and conditions