In simple terms this is how acid or alkaline something is – only a water based solution can have a pH. A pH of 7 is neutral, below 7 is acidic and above 7 is alkaline. The only way to know the pH of a soil is to measure it, either by adding it to a solution which changes colour according to the pH or using a pH meter. Both have there draw backs, with the solution it can be hard to check the colour as the soil discolours the liquid while on the other hand pH meters; if they are to be reliable they are expensive and need constant recalibration with a buffer solution. I’m very dubious about how reliable the ph meters for the domestic market are and I would say for your own garden the kits of indicator solutions are probably better.
Don’t get too hung up on the absolute accuracy of individual test as the pH of soil is vary variable and you may well find slightly different readings in different parts of your garden The advent of pH metes has lead to people publishing the recommended for plants down to a tenth. I don’t really see this has any practical value.