• 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

Filter WooCommerce products with post__in and additional meta queries

Json_Encode not returning html even i try to encode JSON_HEX_QUOT | JSON_HEX_TAG

find in set in laravel ? example

Target class controller does not exist - Laravel 8

loop through an anchor id

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

WordPress + Nginx on non-standard port behind AWS ELB results in broken links

Could not decode a text frame as UTF-8.

How to add class name to an existing tag in php

disable two buttons after clicking another button

Laravel views are showing from cache on one server but works fine on other server

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

WooCommerce: Add/display Product or Variation custom field everywhere

What will the best solution for this multiple optional filter?

How to create a individual template for page or post in custom plugin?

About Contact Privacy policy Terms and conditions