file to string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
chopficaro
Forum Commoner
Posts: 68
Joined: Fri Jan 01, 2010 12:56 am

file to string

Post by chopficaro »

i was wondering if there's a function out there that will take a file and turn it into a string
and would i have to take care of any escaping?
User avatar
phazorRise
Forum Contributor
Posts: 134
Joined: Mon Dec 27, 2010 7:58 am

Re: file to string

Post by phazorRise »

function.file-get-contents.php
It's good practice to escape string before processing.
Post Reply