CodeIgniterPHP Display & amp; 20540; capture-& amp; 20540; ----------------------- show above & amp; 20540;: 057188885281-001 how to intercept-solve the following 001 prawns ------ solution -------------------- (PS: keyword about PHP: CodeIgniter
PHPShow value truncation-value
-----------------------
Value shown above: 057188885281-001
How to intercept-later 001
Solving prawns
------ Solution --------------------
(PS:
PHP technical problemsWelcome to group discussion: 276167802, verification: csl)
$ Str = '1970-001'; $ str = $ value ['haoma ']; if (stripos ($ str ,'-')! = FALSE) {echo substr ($ str, stripos ($ str, '-') + 1);} else {echo $ str ;}
------ Solution --------------------
2,
$ Arr = explode ('-', '2014-001 '); echo $ arr [1];
------ Solution --------------------
The above is the value solution for CodeIgniter PHP display value truncation in this article. I hope this article will be helpful to php developers. thank you for reading this article.