Problem: Article: For example if i tried to echo $input outside of the function, PHP would throw an error because i have not created that variable outside of the function. So note that variables created in a function (including the arguments) can only be used inside that function. Variables declared outside of a function can only be used outside of functions (unless you use them as an argument of course).That said, there is a command that allows you, in a function, to use a variable created outside a function. That command is "global", in the code above we use global with the variable $num so we could change it or access its value in our function. If you test the code, you will get the values 50 and 240. Build your own function that is really useful. Use them in your future PHP projects. Using functions can improve code modularity and the size of the overall project.
Summary: Add three lines of code to your script. Add these before any other code at the beginning of your function. Add this line right after the closing curly brace of your function. For sake of clarity here is the entire code sample. A variable declared inside a function cannot be used outside the function. Play around with functions!

Problem: Article: You're never going to be able to tell if she's out of your league or not if you don't talk to her. You may feel awkward walking up to her, but all you need to do is get a conversation going. You don't have to actually hit on her. Opening a conversation is much more effective than a pickup line at gauging someone's interest. Pick something simple to start the conversation. Ask her about what she's drinking or the music playing. You could say something like, "Isn't this song great?" You can also try to get her to put the spotlight on herself, so she's not judging you. You could say something like, "What an interesting drink choice. What do you like about it?" Another way to break the ice is to ask a small favor of her. You don't have to ask her to run out to the corner store for you or anything like that. Rather, just ask her something small, such as asking her to pass a straw. You could also say something like, "Would you mind moving your bag so I can sit here?" Also, give her your name and ask for hers in return. While wildly different people do get into relationships, most people find partners who are similar to themselves. Education, socioeconomic standing, and beliefs all play a part in finding a good match. The principle of "matching" does apply to looks, too. However, if you're compatible in other ways, looks may not matter as much. Try drawing her out a bit to find more about her. Once you do, you'll be able to assess whether she's out of your league, or whether, in fact, you're out of hers. For example, ask her about her educational background just as a point of interest, such as, "So where did you go to school?" Complimenting her shows you have an interest in her, especially if it is specific to her person. Making it specific shows you've paid attention to her, and it will come off as seeming more real. You don't have to stick to her looks. If you've been talking to her for a few minutes, you could comment on her wittiness or the fact that she has a great laugh. Laughing when she cracks a joke shows you're listening, and it can you that you like her. You don't want to laugh too much, as you may come as fake. However, laughing when she says something truly funny or even mildly humorous will show her you have a good sense of humor. Also, don't be afraid to crack a joke, especially one at your own expense, as it shows her you don't take yourself too seriously. When you see her drink is getting low, order her another. If you see she's shifting back and forth on her heels, ask her if she wants to sit down. By anticipating her needs, you'll show her that you are a genuine, caring person and that you're the kind of person she wants to get to know more.
Summary: Talk to her to figure out if you're in her league. Ask her a favor. Ask her about herself. Don't be afraid to compliment her. Chuckle at her jokes. Anticipate her needs.

Problem: Article: Before you make your own Moby wrap, go to a baby supply store and examine their stock of Moby wraps. This will give you an idea of the proper size, length, width, stretchiness and texture before you make your own. Once you have purchased 5 yards (4.6m) of an appropriate material, in your favorite color or texture, take it home and spread it out flat on the floor or on another large surface. The easiest way to cut the material in a straight line is to fold the material in half, then mark several points along the crease with a piece of chalk. Open the material out again and carefully cut along the chalk-marked line, using the fabric shears. It will be easier to cut if you ask someone else to hold the material taut as you work. Once cut, you should have two strips of material, each approximately 5 yards (4.6m) long and 20 inches (50.8cm) wide. Each of these long strips can be used to make a Moby wrap. Alternatively, you can ask one of the employees at the fabric supply store to cut the material in half for you before you bring it home. Once you have cut your fabric in half, your Moby wrap in half, it is ready to use. However, you can make the wrap look much neater and prevent the edges from fraying by sewing the edges. Use pins to fold over the rough edges to the desired width, then iron these folded edges to make them easier to sew. Place the thread in the sewing machine and use an overlock or zigzag stitch to hem the edges. Brand-name Moby wraps have a tag in the center of the material so you can easily find the middle. This is helpful when you are tying the wrap around your body. If you like, you can emulate this tag by sewing a small square of fabric (in a contrasting pattern/color and fabric) onto the center of the fabric, along the top edge. Using a patch of material made from a different fabric will help you to easily find the tag by feel alone.
Summary: Examine a Moby cloth for size, feel and texture. Lay your chosen material out on the floor. Cut the material in half, lengthwise. Sew the edges of the wrap (optional). Add a patch of fabric to the center of the wrap (optional).

Problem: Article: This makes a torch that can burn for 10 or more minutes.
Summary:
Melt enough paraffin wax in a double boiler to be able to coat with wax about a half of an inch (1 centimeter) deep. Wrap some twine or jute string around several matches from the bottom, to just below the wax quickly.