Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Read A File Or An URL To A String In PHP

DZone's Guide to

Read A File Or An URL To A String In PHP

·
Free Resource
Simply do this:

$string = implode('',file($pathToFileOrUrl));
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}