• 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

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

Laravel print last executed SQL query with Query log

Adding the custom page with add_menu_page function on Wordpress

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Laravel Passport - Not able to get token string in response?

Split array into 4-element chunks then implode into strings

Add Metadata, headers (Expires, CacheControl) to a file uploaded to Amazon S3 using the Laravel 5.0 Storage facade

Sentry on Symfony: how to exclude `NotFoundHttpException`

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

array_key_exists(): The first argument should be either a string or an integer

merging two arrays with specified index

Laravel Blade checkbox not checked

Populate Dynamic Dropdowns List in Codeigniter

Filter WooCommerce related products by Polylang language

Return multiple values from a function using mysqli_fetch_assoc [closed]

About Contact Privacy policy Terms and conditions