• 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

PHP only Hit Counter?

Add Class in html Dynamically in PHP

How to increase the PHP upload limits [duplicate]

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

Using array_intersect on a multi-dimensional array

renameColumn migration fails for existing column with columns does not exist error

How to create a scheduler application in php

Boolean assignment operators in PHP

array_map triple dimensional array [duplicate]

laravel controller function parameters

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null

How to get multiple values with same key from an array PHP

PHP: How to raise number to (tiny) fractional exponent?

Getting output of MS stored procedure on php call

Parsing JSON File to array in PHP

About Contact Privacy policy Terms and conditions