mjgrice Posted May 28, 2008 Share Posted May 28, 2008 Hello, I have been asked to create a tsv file for a data feed. However I dont know how to create the tab between each of the fields. Any ideas would be great. Cheers Mark Link to comment https://forums.phpfreaks.com/topic/107589-creating-tab-seperated-files/ Share on other sites More sharing options...
corbin Posted May 28, 2008 Share Posted May 28, 2008 A tab in php can be represented multiple ways... It can be a literal tab: $var = "some thing"; Or, the special thing "\t".... $var = "some\tthing"; Or... You could always use the ordinal value of tab... $var = "some" . chr(9) . "thing"; Link to comment https://forums.phpfreaks.com/topic/107589-creating-tab-seperated-files/#findComment-551453 Share on other sites More sharing options...
mjgrice Posted May 28, 2008 Author Share Posted May 28, 2008 Thats great, thanks for your help Link to comment https://forums.phpfreaks.com/topic/107589-creating-tab-seperated-files/#findComment-551458 Share on other sites More sharing options...
corbin Posted May 28, 2008 Share Posted May 28, 2008 No problem.... ;p Link to comment https://forums.phpfreaks.com/topic/107589-creating-tab-seperated-files/#findComment-551459 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.