• 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

Display the default discounted price and percentage on Woocommerce products

Adding reCAPTCHA v2 into my PHP file

laravel 5.6 bulk inserting json data

how to sort by a custom appended relation to model

Access denied for user 'homestead'@'localhost' (using password: YES)

Cut an arabic string

How to validate tin and cst using PHP?

PHP array_filter with arguments

add uri parameter to Route name in laravel

Unable to get password for the instance created from AMI

Remove country code from phone number?

Add restriction to WooCommerce coupons by allowed user ID

Laravel Pagination links() not working

Why does using salted hash on python and php give me different results?

How to get variable from JavaScript to PHP [duplicate]

About Contact Privacy policy Terms and conditions