Arry To String Php Code Example


Example 1: php array to string

// for one-dimentional arrays $str = implode('|', $arr);	// "v1|v2|v3"...  // for multi-dimensional/structured arrays, or to keep hierarchy $str = json_encode($arr); // or $str = var_export($arr);

Example 2: arry to string php

implode("|",$type);

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer