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
Recommended Answers
Jump to PostSo much for "nobody here will write it for you". That bit of code just undermined our ethos of helping members to help themselves. It just attracts leeches.
All 7 Replies
pritaeas 2,211 ¯\_(ツ)_/¯ Moderator Featured Poster
shashigowda 0 Junior Poster in Training
pritaeas 2,211 ¯\_(ツ)_/¯ 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.