I am learning PHP myself so i can use in University. I am practising exercises, however this has been too hard for me. A user will input random sequence into a form.. lets call this $_POST [‘query’]. I want to display this $_POST [‘query’] like below:
Title
1 QDGDAAKGEK EFNKCKACHM IQAPDGTDII KGGKTGPNLY GVVGRKIASE
76 EGFKYGEGIL EVAEKNPDLT WTEADLIEYV TDPKPWLVKM TDDKGAKTKM
151 TFKMGKNQAD VVAFLAQNSP DAGGDGEAA
Any help would be much appreciated. Thanks:)
Have a look at chunk_split and explode. That, in combination with a basic for-loop should get you started.