how to split numbers in php?i need a PHP code for this input.if the input is 143,i need output as 8(tat is sum of 143{1+4+3})
shashigowda 0 Junior Poster in Training
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
shashigowda 0 Junior Poster in Training
pritaeas 2,194 ¯\_(ツ)_/¯ Moderator Featured Poster
Gideon_1 15 Junior Poster

diafol
shashigowda 0 Junior Poster in Training
Gideon_1 15 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.