Mutley Posted March 20, 2007 Share Posted March 20, 2007 I've never used a function before. I have a large amount of code about 80 lines and there are only 2 or 3 variables that I need to change. Basicly I want to repeat the code in less than 80 lines, and replace the variables. Can this be achieved in a function? Link to comment https://forums.phpfreaks.com/topic/43519-making-functions/ Share on other sites More sharing options...
per1os Posted March 20, 2007 Share Posted March 20, 2007 Sure, but 80 lines really is not that much code. I remember a project I was head of that was 15,000 lines. Thats alot of lines =) Anyhow if you post your 80 lines we will see what we can't come up with. Link to comment https://forums.phpfreaks.com/topic/43519-making-functions/#findComment-211339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.