|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-08-02 18:59 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 03:00:01 2025 UTC |
Description: ------------ when I try to use array_filter to ensure that I have only integers in my array, I come across this error. Reproduce code: --------------- $arr = array('1','3.1',3.1,'a'); echo implode(',',array_filter($arr,'intval')); Expected result: ---------------- 1,3,3 Actual result: -------------- 1,3.1,3.1