Home how to add substr to my code
Reply: 0

how to add substr to my code

user5783213
1#
user5783213 Published in 2018-02-12 14:50:40Z

i have a txt-file which contains about 19 columns which i am writing to a header-row of a new txt-file with this code:

$HeaderClmns= mb_convert_encoding($HeaderClmns, 
                                  "CP850",                    
                                   mb_detect_encoding($HeaderClmns,
                                                     "UTF-8, CP850, ISO-8859-15",
                                                      true)
                                  );

$HeaderClmns defines about 19 columns which contain different values. The Probelm is, that about 5 of that columns contain text-values which are more then 30 signs, so that i have to cut that with a substr function.

I have never done that before as i am a rookie.Could anynoe give a Tip how t add substr to that string above?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.30813 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO