Jump to content

[SOLVED] help! string in file format


champoi

Recommended Posts

i'm trying to store string in my ftp by using php to save a php file like this:

 

file_put_contents($path . "title.php","<?php echo \"".$title."\"; ?>");

 

the string stored in the $title is almost like this:

• Must be familiar with Rules on Taxation-withholding

• Must be highly analytical and very keen on details

• Must be hardworking and able to work well under pressure

 

but when i include the php file to echo it, it prints like this:

•Must be familiar with Rules on Taxation-withholding•Must be highly analytical and very keen on details•Must be hardworking and able to work well under pressure

 

are there ways to keep the format when echo-ing it?

 

btw, i checked the saved file and it saves the format as is.

 

Link to comment
https://forums.phpfreaks.com/topic/133223-solved-help-string-in-file-format/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.