how to insert new line every certain lenght

$str="p4A2oD0+MGqos7VcDD0NPddXi+iZ3G2WVn5s1Ms1Tder/9RWhLKRdju+zCpt19uklrCUmh2CRFSJ2B0wpt1yG+6bQdu/V5Y61nOTdhl9TIVv4//vYff/uK";

how to make output:

$out="
p4A2oD0+MGqos7VcDD0NPddXi+iZ3G2WVn5s1M
s1Tder/9RWhLKRdju+zCpt19uklrCUmh2CRFSJ2B0
wpt1yG+6bQdu/V5Y61nOTdhl9TIVv4//vYff/uK";
abangbataxAsked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.