# Format txt with php

**URL:** <https://forum.kirupa.com/t/format-txt-with-php/222965>\
**Category:** Uncategorized\
**Created:** [April 18, 2007, 12:36pm UTC](https://forum.kirupa.com/t/format-txt-with-php/222965 "2007-04-18T12:36:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flaskvacuum](https://avatars.discourse-cdn.com/v4/letter/f/b487fb/32.png) [@flaskvacuum](https://forum.kirupa.com/u/flaskvacuum)\
**Post date:** [April 18, 2007, 12:36pm UTC](https://forum.kirupa.com/t/format-txt-with-php/222965/1 "2007-04-18T12:36:13Z")

</div>

i have a variable with value pass from flash into txt with the help of php.The problem i face is how should my php script be if i want to write those values into my txt file like this:

title0=something0&title1=something1…etc

currently the values that is write into my txt file is as below:

title=something&title=something…etc.

php codeartially …  
'$insertString = "&title1=$insertpiNum&

i need to make the title[number] as dynamic rather then just plain string.
