0

This is my php string --

Advertiser ID\tCompany\tManager\tContact Person\tIM_Skype

Now need to convert it to array based on "\t".

how to achieve this?

1

1 Answer 1

5

1. In case of string have single-quote then using explode()

<?php

    $string = 'Advertiser ID\tCompany\tManager\tContact Person\tIM_Skype';
    $array = explode('\t',$string);
    print_r($array);

Output:-https://eval.in/990122

2. In case of string have double-quote then

<?php

    $string = "Advertiser ID\tCompany\tManager\tContact Person\tIM_Skype";
    $array = explode("\t",$string);
    print_r($array);

Output:- https://eval.in/990131

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.